如何解决从 Telegram Bot 到 Telegraf 频道
我需要能够向机器人发送 1 张或多张照片,然后机器人必须将它们发送到频道中。 我已经有一个类似的机器人可以与链接一起使用
这是代码:
async function handleLink(link,ctx) {
if (link.includes("site.com/")) {
bot.telegram.sendMessage(channelPublic," TextMessage "+ctx.chat.first_name+" ID: ( "+ctx.message.chat.id+" ) : "+link+" ?")
bot.telegram.sendMessage(ctx.message.chat.id,"Accepted")
}
else {
bot.telegram.sendMessage(ctx.message.chat.id,"Link under review");
bot.telegram.sendMessage(adminGroupId,ctx.chat.first_name+" ( "+ctx.message.chat.id+" ) Send To Group Admin : "+link,{reply_markup: {
inline_keyboard: [
我希望接受照片而不是链接,可以选择数量,然后将这些照片发送到频道。
我该怎么办?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。