skip to Main Content

heroku telegram bot, BadRequest: Bad webhook: ip address 0.0.0.0 is reserved – Telegram API

I create a simple telegram bot: import logging from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import os PORT = int(os.environ.get('PORT', 8443)) # Enable logging logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) TOKEN = 'YOURTELEGRAMBOTTOKEN' # Define…

VIEW QUESTION

chat_id Eror in python-telegram-bot – Telegram API

I want to make a keyboard in telegram-bot, but I can't find chat_id. How can fix it? Code: from telegram.ext import Updater, CommandHandler from telegram import ReplyKeyboardMarkup updater = Updater(Token) def start(update, _) : update.message.reply_text('Hi {}!'.format(update.message.chat.first_name)) def service_keyboards(bot,update) : chat_id…

VIEW QUESTION
Back To Top
Search