Skip to content

unreal4u/telegram-api

Repository files navigation

Telegram Log

Enables sending messages to Telegram via Monolog.

Credits

This class is made by unreal4u (Camilo Sperberg). unreal4u.com/.

About this class

  • TODO
  • TODO
  • TODO

Detailed description

TODO

Basic usage

// @TODO

Why this class?

There are some pretty good alternatives around there, such as:

The (unofficial) SDK
akalongman's approach

But I wanted to study a bunch of new concepts for me:

  • PHP7
  • Vagrant
  • Monolog
  • Guzzle
  • PHP-CS

I had heard of all these great tools previously but I didn't have a nice project to work on and learn properly. So this project was born.

Extra requirements

You need an actual working bot at Telegram to get started. To do so, initiate a talk with the BotFather (lol) and follow its instructions. More information on how to do so can be found at the amazing documentation here: https://core.telegram.org/bots

Also check here for step-by-step instructions.

Getting everything started up

The most difficult thing to do when talking to a certain user or group is to get the chat_id, which is the actual conversation window the bot talks to.