Error:Sleep for 1.000000 seconds and try again… (tryings = 0, bot id = 7011809806)
Failed to fetch updates – TelegramConflictError: Telegram server says – Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
Code:
import os
from aiogram import Bot, Dispatcher, F
import asyncio
from handlers import start_handler, test_handler
from keyboard import get_reply_keyboard
from data.Cities import city_handler, city_info_handler
TOKEN = "hide"
async def start():
bot = Bot(token=TOKEN)
dp = Dispatcher()
dp.message.register(city_handler, F.text=='Города????')
#города
dp.callback_query.register(city_info_handler)
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(start())
I tried changing the code, but nothing changed.
New contributor
KetSpin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.