skip to Main Content

telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: chat not found

I copied this code from the docs but I'm getting the above error import telebot import os BOT_TOKEN = "My_Bot_Token" bot=telebot.TeleBot(BOT_TOKEN) @bot.message_handler(commands=['start', 'hello']) def send_welcome(message): bot.send_message(message, "Howdy, how are you doing?") bot.infinity_polling() Could someone please tell me whats wrong?

VIEW QUESTION

Django combine queries with and (&) in m2m field – Postgresql

I have such models: class Post(models.Model): title = models.CharField(max_length=200) content = models.TextField() tags = models.ManyToManyField(to="tag", related_name="tags", blank=True) def __str__(self): return self.title class Tag(models.Model): value = models.CharField(max_length=50) parent = models.ManyToManyField("Tag", related_name="children", blank=True) image = models.ImageField(upload_to="tags", null=True, blank=True) def __str__(self): return self.value…

VIEW QUESTION
Back To Top
Search