bot-python
bot-python copied to clipboard
Инструкции
Где можно найти инструкции?? https://agent.mail.ru/botapi/tutorial/ тут все сделал по инструкции from bot.bot import Bot from bot.handler import MessageHandler
TOKEN = "" #your token here
bot = Bot(token=TOKEN)
def message_cb(bot, event): bot.send_text(chat_id=event.from_chat, text=event.text)
bot.dispatcher.add_handler(MessageHandler(callback=message_cb)) bot.start_polling() bot.idle()
Не работает, в консоле python зависает и невозможно ничего сделать, соответственно бот тоже не отвечает на сообщения