Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 351 Bytes

File metadata and controls

26 lines (16 loc) · 351 Bytes

picogram

small api library for telegram bot api

Installation:

pip install picogram

Example:

from picogram import Bot

bot = Bot(token='your_token')


@bot.message()
def start_message(message: dict):
    bot.send_message(chat_id=message['chat']['id'], text='Hello!')


if __name__ == '__main__':
    bot.run_polling()