用于电报机器人的python框架
botogram2的Python项目详细描述
botogram是一个python框架,它允许您只关注 创建您的Telegram bots,而不必担心底层 机器人程序API。
而大多数的电报库都是自动包装的 api,botogram非常注重开发经验,旨在 为您提供最好的api。大部分电报的实现 详细信息由botogram管理,因此您可以只关注您的bot。
import botogram bot = botogram.create("API-KEY") @bot.command("hello") def hello_command(chat, message, args): """Say hello to the world!""" chat.send("Hello world") if __name__ == "__main__": bot.run()