Skip to content

Latest commit

 

History

History
52 lines (26 loc) · 1.38 KB

README.md

File metadata and controls

52 lines (26 loc) · 1.38 KB

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