如何使用nodejs上的telegraf库通过电报bot发送markdown文本?
最佳答案
const token = 'YOUR TOKEN';
const Telegraf = require('telegraf')
const extra = require('telegraf/extra')
const markup = extra.markdown()
const telegram = new Telegraf(token)
telegram.telegram.sendMessage('there chat id', 'your message', markup)
关于node.js - 使用 Telegram bot(telegraf),nodejs发送markdown文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53022863/