最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Telegram bot inline keyboard markup callback usage for channel messages - Stack Overflow

programmeradmin2浏览0评论

My Telegram bot needs to send messages to channel and provide inline keyboard for every message, it looks like this: inline message keyboard

I need to react on this keyboard button click event, but I can't find docs or examples showing how to do it. Here in docs I can only see that such buttons can open URL or switch chat, but it's not the functionality I need.

Currently my code for message sending looks like this (I use NodeJS Telegraf framework):

const Telegraf = require('telegraf');
const { Markup, Telegram } = Telegraf;

const telegram = new Telegram(process.env.BOT_TOKEN);

const inlineMessageRatingKeyboard = [[
    { text: '
发布评论

评论列表(0)

  1. 暂无评论