2017 © Pedro Peláez
 

library telegram-bot-client

image

valizada/telegram-bot-client

  • Thursday, August 2, 2018
  • by valizada
  • Repository
  • 4 Watchers
  • 9 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Telegram-Bot-Client

Bot Client which is going to follow rules set by Telegram's BotFather :)), (*1)

This repo will establish communication between client and your bot, create all objects and methods provided by Telegram in PHP. So that you can easily configure your Bot and customize it given your needs., (*2)

My bot

His name is @FizBot, feel free to talk to him, he is very fun, for now he is just learning to talk, will repeat whatever you say, send you his location, and a picture of sweet kitten., (*3)

How to install and use

Using Composer, (*4)

composer create-project valizada/telegram-bot-client

If you do not have composer, then follow this get composer) link, (*5)

Clone the repository, (*6)

git clone git@github.com:valizada/Telegram-Bot-Client.git

Generate Telegram Bot Token by following instructions given in this link, (*7)

Edit following line: private $URL = "https://api.telegram.org/botYOUR_TOKEN_GOES_HERE/"; in the ParentClass.php file, and include your own token gotten from Telegram., (*8)

Then, you should create a webhook for listening to the incoming updates from Telegram(more about Telegram Bot Webhook) Run the following command, by specifying a url to receive incoming updates via an outgoing webhook., (*9)

If you'd like to make sure that the Webhook request comes from Telegram, it is recommended using a secret path in the URL, e.g. https://www.example.com/. Since nobody else knows your bot‘s token, you can be pretty sure it’s Telegram., (*10)

php webhook.php https://www.example.com/<token>

The Versions

02/08 2018

dev-develop

dev-develop

  Sources   Download

05/04 2018

v1.0-beta

1.0.0.0-beta

  Sources   Download

01/09 2016

dev-master

9999999-dev https://github.com/valizada/Telegram-Bot-Client

Bot Client which is going to follow rules set by Telegram's BotFather :))

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

bot telegram telegram-bot botfather

01/09 2016

v1.01

1.01.0.0 https://github.com/valizada/Telegram-Bot-Client

Bot Client which is going to follow rules set by Telegram's BotFather :))

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

bot telegram telegram-bot botfather

01/09 2016

v1.01-beta

1.01.0.0-beta https://github.com/valizada/Telegram-Bot-Client

Bot Client which is going to follow rules set by Telegram's BotFather :))

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

bot telegram telegram-bot botfather