bot-python icon indicating copy to clipboard operation
bot-python copied to clipboard

Инструкции

Open vvvvadim opened this issue 1 year ago • 7 comments

Где можно найти инструкции?? 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 зависает и невозможно ничего сделать, соответственно бот тоже не отвечает на сообщения

vvvvadim avatar Dec 20 '23 20:12 vvvvadim