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

How do I mark a message as read? – Telegram API

How do I mark a message as read? app = Client(session_name, api_id, api_hash) @app.on_message() async def my_handler(client, message): await app.send_message(message.from_user.username, "ok boss") await app.read_chat_history(message.from_user.username) app.run() I expected the bot's message to be ticked that he had read it

VIEW QUESTION

telegram bot webapp initData() is empty on Google app script and MainButton.onClick is not working – Telegram API

telegram bot webapp initData() is empty on Google app script and MainButton.onClick is not working. please help. ` <!DOCTYPE html> <html> <head> <script src="https://telegram.org/js/telegram-web-app.js"></script> <base target="_self"> </head> <body> <div class="container"> <h1>My Title</h1> <div class="row" id="tg"></div> <div class="row" > <button id="btn">all_inclusive</button>…

VIEW QUESTION
Back To Top
Search