skip to Main Content

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

python telegram bot "context.bot.send_message" – Telegram API

I am using "python-telegram-bot" library and have been looking at various examples over the internet. I have noticed there are two ways to reply in a conversation: the first: ''' context.bot.send_message(chat_id=update.effective_chat.id, text=msg)''' the second: '''update.message.reply_text(text=msg)''' practically they both work. Should…

VIEW QUESTION
Back To Top
Search