skip to Main Content

NameError: name 'startCommand' is not defined – PYTHON – Telegram API

from coinbase.wallet.client import Client from telegram import ParseMode from telegram.ext import CommandHandler, Defaults, Updater COINBASE_KEY = 'xxxxxxxxxxxx' COINBASE_SECRET = 'xxxxxxxxxxxx' TELEGRAM_TOKEN = 'xxxxxxxxxxxx' coinbase_client = Client(COINBASE_KEY, COINBASE_SECRET) #if __name__ == '__main__': updater = Updater(token=TELEGRAM_TOKEN, defaults=Defaults(parse_mode=ParseMode.HTML)) dispatcher = updater.dispatcher dispatcher.add_handler('start', startCommand)…

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