bot.py 文件源码

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

项目:vk-messages-bot 作者: zaynetro 项目源码 文件源码
def start_command_callback(self, bot, update):
        chat_id = update.message.chat_id
        auth_url = self.vk.get_auth_url()
        # Send first info messages
        bot.sendMessage(chat_id=chat_id,
                        text=message.WELCOME(auth_url),
                        reply_markup=ReplyKeyboardHide())
        bot.sendMessage(chat_id=chat_id, text=message.COPY_TOKEN)
        # Create new client
        client = Client(next_action=action.ACCESS_TOKEN,
                        chat_id=chat_id)
        self.clients[chat_id] = client
        client.persist()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号