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

Telegraf: can't use extra – Telegram API

Simple usage works fine: const { Telegraf } = require('telegraf'); const bot = new Telegraf(tgBotToken); bot.telegram.sendMessage(tgChatId, "My message"); But if I want to use HTML in my message, I need to require telegraf/extra const { Telegraf } = require('telegraf'); const…

VIEW QUESTION
Back To Top
Search