Loading repository data…
Loading repository data…
peppelg / repository
⚡️ One-file minimal asynchronous Python & PHP Telegram Bot Api framework.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
⚡️ 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.
Choose the version you prefer:
The methods are the same of the Telegram Bot Api. So, if you want to send a message, you will use the sendMessage method.

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.