Skip to content
/ EzTG Public

⚡️ One-file minimal asynchronous Python & PHP Telegram Bot Api framework.

License

Notifications You must be signed in to change notification settings

peppelg/EzTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EzTG

⚡️ EzTG is a minimal async (& non-async) Telegram Bot Api Framework. It's available for Python and PHP.

The methods are the same of the Telegram Bot Api, so you don't need to learn anything new.


Index


Getting started

Choose the version you prefer:

Calling methods

The methods are the same of the Telegram Bot Api. So, if you want to send a message, you will use the sendMessage method. Example

chat_id and text are required. So...

Python: bot.sendMessage(chat_id=1234, text='hi!')

PHP: $bot.sendMessage(['chat_id' => 1234, 'text' => 'hi!']);

To find the current chat id: chat_id = update['message']['chat']['id']

[tutorial] How to send a photo using EzTG

Take a look at the example.py/example.php file.

Help

EzTG and TGUserbot group