2017 © Pedro Peláez
 

library moon-telegram

Telegram helper

image

shakibonline/moon-telegram

Telegram helper

  • Saturday, August 12, 2017
  • by shakibonline
  • Repository
  • 1 Watchers
  • 5 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

MoonTelegram

Total Downloads License StyleCI, (*1)

It's a way to use the telegram's response as Object instead of Array, (*2)

Installation

From your project directory, run, (*3)

composer require shakibonline/moon-telegram

Examples

require_once 'vendor/autoload.php';

/**
 * @var array $update
 */
$message = new \Shakibonline\Message($update);

echo $message->Text() . PHP_EOL;
echo $message->Chat()->ID() . PHP_EOL;
echo $message->Chat()->Type() . PHP_EOL;

Check The type, (*4)

/**
 * @var array $update
 */
$type = MoonTelegram::Type($update);

if ( $type === MoonTelegram::MESSAGE ) {
    $message = new Message($update);
    $chat = $message->Chat();
} elseif ( $type === MoonTelegram::CALLBACK_QUERY ) {
    $callback = new CallbackQuery($update);
    $chat = $callback->Message()->Chat();
}

See Examples folder, (*5)

Contact me

You can contact me via Telegram (EN and FA) but if you have an issue please open one., (*6)

# Pull Request

Your welcome to any pull requests., (*7)

The Versions

12/08 2017

dev-master

9999999-dev

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

12/08 2017

dev-analysis-8njPEg

dev-analysis-8njPEg

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

27/07 2017

0.1.0

0.1.0.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

27/07 2017

dev-analysis-z3pjoG

dev-analysis-z3pjoG

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

26/07 2017

0.0.6

0.0.6.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

18/07 2017

v0.0.5

0.0.5.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

18/07 2017

0.0.4

0.0.4.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

20/06 2017

0.0.3

0.0.3.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

20/06 2017

0.0.2

0.0.2.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

13/06 2017

0.0.1

0.0.1.0

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba

11/06 2017

dev-analysis-z47okn

dev-analysis-z47okn

Telegram helper

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Abbas Shakiba