R
R
Returnnn2021-10-19 15:13:09
Bots
Returnnn, 2021-10-19 15:13:09

Bug in python aiogram telegram?

Error in python aiogram, repeats messages 30 times

#import
import Config
import logging
from aiogram import Bot, Dispatcher, executor, types
import front as nav
#logs
logging.basicConfig(level=logging.INFO)
#log
bot = Bot(token = Config.TOKEN)
dp = Dispatcher(bot)
#backand
#command
@dp.message_handler(commands=['start'])
async def choose(message: types.Message):
await bot.send_message(message.from_user.id, ' \nChoose your Language: '.format(message.from_user),reply_markup = nav.mainMenu)
@dp.message_handler(commands=['help'])
async def help(message: types.Message):
await bot.send_message(message.from_user.id, "test")
#else
@dp.message_handler()
async def mes(msg: types.Message):
await bot.send_message(msg.from_user.id, "I don't understand about what are you, use command: /help")
#run
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)199682681_2675eb4c10aaa20f86a0168b3aead794_800.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-10-19
@shurshur

He writes directly that it is not so. A second bot instance is launched somewhere with the same token, which also pulls getUpdates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question