simple.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:ownbot 作者: michaelimfeld 项目源码 文件源码
def main():
    """
        Simple private telegram bot example.
    """
    # Set up logging to log to stdout
    import logging
    logging.basicConfig(
        level=logging.DEBUG,
        format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
    )

    updater = Updater(TOKEN)
    dispatcher = updater.dispatcher
    dispatcher.add_handler(CommandHandler("start", start_handler))

    # Enable admin commands for this bot
    AdminCommands(dispatcher)

    updater.start_polling()
    updater.idle()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号