@ apicity/ 电报
电报 提供Bot API,用于发送信息,媒体,民意调查,以及丰富的信息.
运行时间依赖性 :
zod@^4.6.6- 请求在每一个 POST 端点上附加计划.schema
安装
npm install @apicity/telegram
# or
pnpm add @apicity/telegram
快速启动
import { createTelegram } from "@apicity/telegram";
const telegram = createTelegram({ botToken: process.env.TELEGRAM_BOT_KEY! });
设置
此套件使用Telegram Bot API 令牌. 在这回购中,
TELEGRAM_BOT_KEY 从 1Password 中解析 @apicitylogbot。 。 。 .
import { createTelegram } from "@apicity/telegram";
const telegram = createTelegram({
botToken: process.env.TELEGRAM_BOT_KEY!,
});
await telegram.sendMessage({
chat_id: "@your_channel_or_chat_id",
text: "hello from @apicity/telegram",
});
const photo = new Blob(["image bytes"], { type: "image/png" });
await telegram.sendPhoto({
chat_id: "@your_channel_or_chat_id",
photo,
caption: "uploaded from @apicitylogbot",
});
页:1
chat_id可以是数字聊天id或用户名,例如@channelname。 。 。 .photo, (中文(简体) ),video, (中文(简体) ),audio, (中文(简体) ),thumbnail,以及cover接受电报file_id,一个 HTTP URL,一个attach://...参考文献,或 aBlob。 。 。 .- Blob 有效载荷作为
multipart/form-data; 使用字符串有效载荷application/json。 。 。 . - 已录制的例子 : 红外博物令牌、 Webhook 秘密令牌、 付款 有效载荷、护照数据、Telegram文件标识符和Blob字节.
API 参考
180组的180个终点. 每个方法都映射出上游的 URL 路径 .
添加 Sticker 选项
POST telegram.addStickerToSet
POST https://api.telegram.org/bot{token}/addStickerToSet
成本等级 : cheap
const res = await telegram.addStickerToSet({ /* ... */ });
回话查询
POST telegram.answerCallbackQuery
POST https://api.telegram.org/bot{token}/answerCallbackQuery
成本等级 : cheap
const res = await telegram.answerCallbackQuery({ /* ... */ });
回答ChatJoin 请求查询
POST telegram.answerChatJoinRequestQuery
POST https://api.telegram.org/bot{token}/answerChatJoinRequestQuery
成本等级 : cheap
const res = await telegram.answerChatJoinRequestQuery({ /* ... */ });
回答嘉宾查询
POST telegram.answerGuestQuery
POST https://api.telegram.org/bot{token}/answerGuestQuery
成本等级 : cheap
const res = await telegram.answerGuestQuery({ /* ... */ });
回答内置查询
POST telegram.answerInlineQuery
POST https://api.telegram.org/bot{token}/answerInlineQuery
成本等级 : cheap
const res = await telegram.answerInlineQuery({ /* ... */ });
回答预检查查询
POST telegram.answerPreCheckoutQuery
POST https://api.telegram.org/bot{token}/answerPreCheckoutQuery
成本等级 : cheap
const res = await telegram.answerPreCheckoutQuery({ /* ... */ });
解答测试
POST telegram.answerShippingQuery
POST https://api.telegram.org/bot{token}/answerShippingQuery
成本等级 : cheap
const res = await telegram.answerShippingQuery({ /* ... */ });
回答WebApp查询
POST telegram.answerWebAppQuery
POST https://api.telegram.org/bot{token}/answerWebAppQuery
成本等级 : cheap
const res = await telegram.answerWebAppQuery({ /* ... */ });
批准ChatJoin请求
POST telegram.approveChatJoinRequest
POST https://api.telegram.org/bot{token}/approveChatJoinRequest
成本等级 : cheap
const res = await telegram.approveChatJoinRequest({ /* ... */ });
建议核准
POST telegram.approveSuggestedPost
POST https://api.telegram.org/bot{token}/approveSuggestedPost
成本等级 : cheap
const res = await telegram.approveSuggestedPost({ /* ... */ });
banChat 成员
POST telegram.banChatMember
POST https://api.telegram.org/bot{token}/banChatMember
成本等级 : cheap
const res = await telegram.banChatMember({ /* ... */ });
banChat 发音
POST telegram.banChatSenderChat
POST https://api.telegram.org/bot{token}/banChatSenderChat
成本等级 : cheap
const res = await telegram.banChatSenderChat({ /* ... */ });
关闭
POST telegram.close
POST https://api.telegram.org/bot{token}/close
成本等级 : cheap
const res = await telegram.close({ /* ... */ });
关闭论坛
POST telegram.closeForumTopic
POST https://api.telegram.org/bot{token}/closeForumTopic
成本等级 : cheap
const res = await telegram.closeForumTopic({ /* ... */ });
一般论坛图示
POST telegram.closeGeneralForumTopic
POST https://api.telegram.org/bot{token}/closeGeneralForumTopic
成本等级 : cheap
const res = await telegram.closeGeneralForumTopic({ /* ... */ });
转换 GiftTo星
POST telegram.convertGiftToStars
POST https://api.telegram.org/bot{token}/convertGiftToStars
成本等级 : cheap
const res = await telegram.convertGiftToStars({ /* ... */ });
复制信
POST telegram.copyMessage
POST https://api.telegram.org/bot{token}/copyMessage
成本等级 : cheap
const res = await telegram.copyMessage({ /* ... */ });
副本
POST telegram.copyMessages
POST https://api.telegram.org/bot{token}/copyMessages
成本等级 : cheap
const res = await telegram.copyMessages({ /* ... */ });
创建 ChatInviteLink 链接
POST telegram.createChatInviteLink
POST https://api.telegram.org/bot{token}/createChatInviteLink
成本等级 : cheap
const res = await telegram.createChatInviteLink({ /* ... */ });
创建 Chat 订阅InviteLink
POST telegram.createChatSubscriptionInviteLink
POST https://api.telegram.org/bot{token}/createChatSubscriptionInviteLink
成本等级 : cheap
const res = await telegram.createChatSubscriptionInviteLink({ /* ... */ });
创建论坛图
POST telegram.createForumTopic
POST https://api.telegram.org/bot{token}/createForumTopic
成本等级 : cheap
const res = await telegram.createForumTopic({ /* ... */ });
创建语音链接
POST telegram.createInvoiceLink
POST https://api.telegram.org/bot{token}/createInvoiceLink
成本等级 : cheap
const res = await telegram.createInvoiceLink({ /* ... */ });
创建NewStickerSet
POST telegram.createNewStickerSet
POST https://api.telegram.org/bot{token}/createNewStickerSet
成本等级 : cheap
const res = await telegram.createNewStickerSet({ /* ... */ });
递减ChatJoin 请求
POST telegram.declineChatJoinRequest
POST https://api.telegram.org/bot{token}/declineChatJoinRequest
成本等级 : cheap
const res = await telegram.declineChatJoinRequest({ /* ... */ });
已建议
POST telegram.declineSuggestedPost
POST https://api.telegram.org/bot{token}/declineSuggestedPost
成本等级 : cheap
const res = await telegram.declineSuggestedPost({ /* ... */ });
删除全部信件反应
POST telegram.deleteAllMessageReactions
POST https://api.telegram.org/bot{token}/deleteAllMessageReactions
成本等级 : cheap
const res = await telegram.deleteAllMessageReactions({ /* ... */ });
删除商业信息
POST telegram.deleteBusinessMessages
POST https://api.telegram.org/bot{token}/deleteBusinessMessages
成本等级 : cheap
const res = await telegram.deleteBusinessMessages({ /* ... */ });
删除ChatPhoto
POST telegram.deleteChatPhoto
POST https://api.telegram.org/bot{token}/deleteChatPhoto
成本等级 : cheap
const res = await telegram.deleteChatPhoto({ /* ... */ });
删除 ChatStickerSet 服务器
POST telegram.deleteChatStickerSet
POST https://api.telegram.org/bot{token}/deleteChatStickerSet
成本等级 : cheap
const res = await telegram.deleteChatStickerSet({ /* ... */ });
删除论坛图
POST telegram.deleteForumTopic
POST https://api.telegram.org/bot{token}/deleteForumTopic
成本等级 : cheap
const res = await telegram.deleteForumTopic({ /* ... */ });
删除信件
POST telegram.deleteMessage
POST https://api.telegram.org/bot{token}/deleteMessage
成本等级 : cheap
const res = await telegram.deleteMessage({ /* ... */ });
删除信件反应
POST telegram.deleteMessageReaction
POST https://api.telegram.org/bot{token}/deleteMessageReaction
成本等级 : cheap
const res = await telegram.deleteMessageReaction({ /* ... */ });
删除
POST telegram.deleteMessages
POST https://api.telegram.org/bot{token}/deleteMessages
成本等级 : cheap
const res = await telegram.deleteMessages({ /* ... */ });
删除我的指令
POST telegram.deleteMyCommands
POST https://api.telegram.org/bot{token}/deleteMyCommands
成本等级 : cheap
const res = await telegram.deleteMyCommands({ /* ... */ });
删除 Sticker from Set
POST telegram.deleteStickerFromSet
POST https://api.telegram.org/bot{token}/deleteStickerFromSet
成本等级 : cheap
const res = await telegram.deleteStickerFromSet({ /* ... */ });
删除StickerSet
POST telegram.deleteStickerSet
POST https://api.telegram.org/bot{token}/deleteStickerSet
成本等级 : cheap
const res = await telegram.deleteStickerSet({ /* ... */ });
删除故事
POST telegram.deleteStory
POST https://api.telegram.org/bot{token}/deleteStory
成本等级 : cheap
const res = await telegram.deleteStory({ /* ... */ });
删除网易
POST telegram.deleteWebhook
POST https://api.telegram.org/bot{token}/deleteWebhook
成本等级 : cheap
const res = await telegram.deleteWebhook({ /* ... */ });
编辑ChatInviteLink
POST telegram.editChatInviteLink
POST https://api.telegram.org/bot{token}/editChatInviteLink
成本等级 : cheap
const res = await telegram.editChatInviteLink({ /* ... */ });
编辑Chat 订阅InviteLink
POST telegram.editChatSubscriptionInviteLink
POST https://api.telegram.org/bot{token}/editChatSubscriptionInviteLink
成本等级 : cheap
const res = await telegram.editChatSubscriptionInviteLink({ /* ... */ });
编辑论坛图
POST telegram.editForumTopic
POST https://api.telegram.org/bot{token}/editForumTopic
成本等级 : cheap
const res = await telegram.editForumTopic({ /* ... */ });
编辑一般论坛图
POST telegram.editGeneralForumTopic
POST https://api.telegram.org/bot{token}/editGeneralForumTopic
成本等级 : cheap
const res = await telegram.editGeneralForumTopic({ /* ... */ });
编辑
POST telegram.editMessageCaption
POST https://api.telegram.org/bot{token}/editMessageCaption
成本等级 : cheap
const res = await telegram.editMessageCaption({ /* ... */ });
编辑信件检查列表
POST telegram.editMessageChecklist
POST https://api.telegram.org/bot{token}/editMessageChecklist
成本等级 : cheap
const res = await telegram.editMessageChecklist({ /* ... */ });
编辑MessageLiveLocation
POST telegram.editMessageLiveLocation
POST https://api.telegram.org/bot{token}/editMessageLiveLocation
成本等级 : cheap
const res = await telegram.editMessageLiveLocation({ /* ... */ });
编辑媒体
POST telegram.editMessageMedia
POST https://api.telegram.org/bot{token}/editMessageMedia
成本等级 : cheap
const res = await telegram.editMessageMedia({ /* ... */ });
编辑Message Reply Markup
POST telegram.editMessageReplyMarkup
POST https://api.telegram.org/bot{token}/editMessageReplyMarkup
成本等级 : cheap
const res = await telegram.editMessageReplyMarkup({ /* ... */ });
编辑Message 文本
POST telegram.editMessageText
POST https://api.telegram.org/bot{token}/editMessageText
成本等级 : cheap
const res = await telegram.editMessageText({ /* ... */ });
编辑故事
POST telegram.editStory
POST https://api.telegram.org/bot{token}/editStory
成本等级 : cheap
const res = await telegram.editStory({ /* ... */ });
编辑用户星订阅
POST telegram.editUserStarSubscription
POST https://api.telegram.org/bot{token}/editUserStarSubscription
成本等级 : cheap
const res = await telegram.editUserStarSubscription({ /* ... */ });
导出ChatInviteLink
POST telegram.exportChatInviteLink
POST https://api.telegram.org/bot{token}/exportChatInviteLink
成本等级 : cheap
const res = await telegram.exportChatInviteLink({ /* ... */ });
转发
POST telegram.forwardMessage
POST https://api.telegram.org/bot{token}/forwardMessage
成本等级 : cheap
const res = await telegram.forwardMessage({ /* ... */ });
转发
POST telegram.forwardMessages
POST https://api.telegram.org/bot{token}/forwardMessages
成本等级 : cheap
const res = await telegram.forwardMessages({ /* ... */ });
获得易碎食品
POST telegram.getAvailableGifts
POST https://api.telegram.org/bot{token}/getAvailableGifts
成本等级 : cheap
const res = await telegram.getAvailableGifts({ /* ... */ });
获得商业账户
POST telegram.getBusinessAccountGifts
POST https://api.telegram.org/bot{token}/getBusinessAccountGifts
成本等级 : cheap
const res = await telegram.getBusinessAccountGifts({ /* ... */ });
获取商业账户星报
POST telegram.getBusinessAccountStarBalance
POST https://api.telegram.org/bot{token}/getBusinessAccountStarBalance
成本等级 : cheap
const res = await telegram.getBusinessAccountStarBalance({ /* ... */ });
获取商务连接
POST telegram.getBusinessConnection
POST https://api.telegram.org/bot{token}/getBusinessConnection
成本等级 : cheap
const res = await telegram.getBusinessConnection({ /* ... */ });
获取聊天
POST telegram.getChat
POST https://api.telegram.org/bot{token}/getChat
成本等级 : cheap
const res = await telegram.getChat({ /* ... */ });
获取聊天管理员
POST telegram.getChatAdministrators
POST https://api.telegram.org/bot{token}/getChatAdministrators
成本等级 : cheap
const res = await telegram.getChatAdministrators({ /* ... */ });
获取ChatGifts
POST telegram.getChatGifts
POST https://api.telegram.org/bot{token}/getChatGifts
成本等级 : cheap
const res = await telegram.getChatGifts({ /* ... */ });
获取聊天成员
POST telegram.getChatMember
POST https://api.telegram.org/bot{token}/getChatMember
成本等级 : cheap
const res = await telegram.getChatMember({ /* ... */ });
获取Chat MemberCount
POST telegram.getChatMemberCount
POST https://api.telegram.org/bot{token}/getChatMemberCount
成本等级 : cheap
const res = await telegram.getChatMemberCount({ /* ... */ });
获取 ChatMenu 按钮
POST telegram.getChatMenuButton
POST https://api.telegram.org/bot{token}/getChatMenuButton
成本等级 : cheap
const res = await telegram.getChatMenuButton({ /* ... */ });
获取 Custom EmojiSticers 客户
POST telegram.getCustomEmojiStickers
POST https://api.telegram.org/bot{token}/getCustomEmojiStickers
成本等级 : cheap
const res = await telegram.getCustomEmojiStickers({ /* ... */ });
获取文件
POST telegram.getFile
POST https://api.telegram.org/bot{token}/getFile
成本等级 : cheap
const res = await telegram.getFile({ /* ... */ });
获取论坛
POST telegram.getForumTopicIconStickers
POST https://api.telegram.org/bot{token}/getForumTopicIconStickers
成本等级 : cheap
const res = await telegram.getForumTopicIconStickers({ /* ... */ });
获得高分数
POST telegram.getGameHighScores
POST https://api.telegram.org/bot{token}/getGameHighScores
成本等级 : cheap
const res = await telegram.getGameHighScores({ /* ... */ });
管理Bot 访问安排
POST telegram.getManagedBotAccessSettings
POST https://api.telegram.org/bot{token}/getManagedBotAccessSettings
成本等级 : cheap
const res = await telegram.getManagedBotAccessSettings({ /* ... */ });
获得管理盒
POST telegram.getManagedBotToken
POST https://api.telegram.org/bot{token}/getManagedBotToken
成本等级 : cheap
const res = await telegram.getManagedBotToken({ /* ... */ });
带我
POST telegram.getMe
POST https://api.telegram.org/bot{token}/getMe
成本等级 : cheap
const res = await telegram.getMe({ /* ... */ });
获取我的命令
POST telegram.getMyCommands
POST https://api.telegram.org/bot{token}/getMyCommands
成本等级 : cheap
const res = await telegram.getMyCommands({ /* ... */ });
获取我的过失管理者权利
POST telegram.getMyDefaultAdministratorRights
POST https://api.telegram.org/bot{token}/getMyDefaultAdministratorRights
成本等级 : cheap
const res = await telegram.getMyDefaultAdministratorRights({ /* ... */ });
获取我的描述
POST telegram.getMyDescription
POST https://api.telegram.org/bot{token}/getMyDescription
成本等级 : cheap
const res = await telegram.getMyDescription({ /* ... */ });
获取我的Name
POST telegram.getMyName
POST https://api.telegram.org/bot{token}/getMyName
成本等级 : cheap
const res = await telegram.getMyName({ /* ... */ });
获取 MyShort 描述
POST telegram.getMyShortDescription
POST https://api.telegram.org/bot{token}/getMyShortDescription
成本等级 : cheap
const res = await telegram.getMyShortDescription({ /* ... */ });
获取我的星光旗
POST telegram.getMyStarBalance
POST https://api.telegram.org/bot{token}/getMyStarBalance
成本等级 : cheap
const res = await telegram.getMyStarBalance({ /* ... */ });
获取星际交易
POST telegram.getStarTransactions
POST https://api.telegram.org/bot{token}/getStarTransactions
成本等级 : cheap
const res = await telegram.getStarTransactions({ /* ... */ });
获取StickerSet
POST telegram.getStickerSet
POST https://api.telegram.org/bot{token}/getStickerSet
成本等级 : cheap
const res = await telegram.getStickerSet({ /* ... */ });
获取更新
POST telegram.getUpdates
POST https://api.telegram.org/bot{token}/getUpdates
成本等级 : cheap
const res = await telegram.getUpdates({ /* ... */ });
获取用户聊天室
POST telegram.getUserChatBoosts
POST https://api.telegram.org/bot{token}/getUserChatBoosts
成本等级 : cheap
const res = await telegram.getUserChatBoosts({ /* ... */ });
获取用户选择
POST telegram.getUserGifts
POST https://api.telegram.org/bot{token}/getUserGifts
成本等级 : cheap
const res = await telegram.getUserGifts({ /* ... */ });
获取用户个人通讯
POST telegram.getUserPersonalChatMessages
POST https://api.telegram.org/bot{token}/getUserPersonalChatMessages
成本等级 : cheap
const res = await telegram.getUserPersonalChatMessages({ /* ... */ });
获取用户ProfileAudios
POST telegram.getUserProfileAudios
POST https://api.telegram.org/bot{token}/getUserProfileAudios
成本等级 : cheap
const res = await telegram.getUserProfileAudios({ /* ... */ });
获取用户ProfilePhotos
POST telegram.getUserProfilePhotos
POST https://api.telegram.org/bot{token}/getUserProfilePhotos
成本等级 : cheap
const res = await telegram.getUserProfilePhotos({ /* ... */ });
获取 Webhook 信息
POST telegram.getWebhookInfo
POST https://api.telegram.org/bot{token}/getWebhookInfo
成本等级 : cheap
const res = await telegram.getWebhookInfo({ /* ... */ });
礼品订阅
POST telegram.giftPremiumSubscription
POST https://api.telegram.org/bot{token}/giftPremiumSubscription
成本等级 : cheap
const res = await telegram.giftPremiumSubscription({ /* ... */ });
隐藏一般论坛图案
POST telegram.hideGeneralForumTopic
POST https://api.telegram.org/bot{token}/hideGeneralForumTopic
成本等级 : cheap
const res = await telegram.hideGeneralForumTopic({ /* ... */ });
离开聊天
POST telegram.leaveChat
POST https://api.telegram.org/bot{token}/leaveChat
成本等级 : cheap
const res = await telegram.leaveChat({ /* ... */ });
日志出
POST telegram.logOut
POST https://api.telegram.org/bot{token}/logOut
成本等级 : cheap
const res = await telegram.logOut({ /* ... */ });
pinChat 图像
POST telegram.pinChatMessage
POST https://api.telegram.org/bot{token}/pinChatMessage
成本等级 : cheap
const res = await telegram.pinChatMessage({ /* ... */ });
邮编
POST telegram.postStory
POST https://api.telegram.org/bot{token}/postStory
成本等级 : cheap
const res = await telegram.postStory({ /* ... */ });
推动聊天成员
POST telegram.promoteChatMember
POST https://api.telegram.org/bot{token}/promoteChatMember
成本等级 : cheap
const res = await telegram.promoteChatMember({ /* ... */ });
读取商务信息
POST telegram.readBusinessMessage
POST https://api.telegram.org/bot{token}/readBusinessMessage
成本等级 : cheap
const res = await telegram.readBusinessMessage({ /* ... */ });
偿还星际支付
POST telegram.refundStarPayment
POST https://api.telegram.org/bot{token}/refundStarPayment
成本等级 : cheap
const res = await telegram.refundStarPayment({ /* ... */ });
删除商务账户ProfilePhoto
POST telegram.removeBusinessAccountProfilePhoto
POST https://api.telegram.org/bot{token}/removeBusinessAccountProfilePhoto
成本等级 : cheap
const res = await telegram.removeBusinessAccountProfilePhoto({ /* ... */ });
删除查特验证
POST telegram.removeChatVerification
POST https://api.telegram.org/bot{token}/removeChatVerification
成本等级 : cheap
const res = await telegram.removeChatVerification({ /* ... */ });
删除我的ProfilePhoto
POST telegram.removeMyProfilePhoto
POST https://api.telegram.org/bot{token}/removeMyProfilePhoto
成本等级 : cheap
const res = await telegram.removeMyProfilePhoto({ /* ... */ });
删除用户验证
POST telegram.removeUserVerification
POST https://api.telegram.org/bot{token}/removeUserVerification
成本等级 : cheap
const res = await telegram.removeUserVerification({ /* ... */ });
重新打开论坛
POST telegram.reopenForumTopic
POST https://api.telegram.org/bot{token}/reopenForumTopic
成本等级 : cheap
const res = await telegram.reopenForumTopic({ /* ... */ });
重新打开一般论坛
POST telegram.reopenGeneralForumTopic
POST https://api.telegram.org/bot{token}/reopenGeneralForumTopic
成本等级 : cheap
const res = await telegram.reopenGeneralForumTopic({ /* ... */ });
替换 Managed BotToken
POST telegram.replaceManagedBotToken
POST https://api.telegram.org/bot{token}/replaceManagedBotToken
成本等级 : cheap
const res = await telegram.replaceManagedBotToken({ /* ... */ });
替换 StickerInSet
POST telegram.replaceStickerInSet
POST https://api.telegram.org/bot{token}/replaceStickerInSet
成本等级 : cheap
const res = await telegram.replaceStickerInSet({ /* ... */ });
调出故事
POST telegram.repostStory
POST https://api.telegram.org/bot{token}/repostStory
成本等级 : cheap
const res = await telegram.repostStory({ /* ... */ });
限制聊天成员
POST telegram.restrictChatMember
POST https://api.telegram.org/bot{token}/restrictChatMember
成本等级 : cheap
const res = await telegram.restrictChatMember({ /* ... */ });
取消 ChatInviteLink 链接
POST telegram.revokeChatInviteLink
POST https://api.telegram.org/bot{token}/revokeChatInviteLink
成本等级 : cheap
const res = await telegram.revokeChatInviteLink({ /* ... */ });
保存已准备的内存
POST telegram.savePreparedInlineMessage
POST https://api.telegram.org/bot{token}/savePreparedInlineMessage
成本等级 : cheap
const res = await telegram.savePreparedInlineMessage({ /* ... */ });
保存已准备的键盘按钮
POST telegram.savePreparedKeyboardButton
POST https://api.telegram.org/bot{token}/savePreparedKeyboardButton
成本等级 : cheap
const res = await telegram.savePreparedKeyboardButton({ /* ... */ });
发送动画
POST telegram.sendAnimation
POST https://api.telegram.org/bot{token}/sendAnimation
成本等级 : cheap
const res = await telegram.sendAnimation({ /* ... */ });
发送奥迪奥
POST telegram.sendAudio
POST https://api.telegram.org/bot{token}/sendAudio
成本等级 : cheap
const res = await telegram.sendAudio({ /* ... */ });
发送聊天动作
POST telegram.sendChatAction
POST https://api.telegram.org/bot{token}/sendChatAction
成本等级 : cheap
const res = await telegram.sendChatAction({ /* ... */ });
发送ChatJoin 请求WebApp
POST telegram.sendChatJoinRequestWebApp
POST https://api.telegram.org/bot{token}/sendChatJoinRequestWebApp
成本等级 : cheap
const res = await telegram.sendChatJoinRequestWebApp({ /* ... */ });
发送检查列表
POST telegram.sendChecklist
POST https://api.telegram.org/bot{token}/sendChecklist
成本等级 : cheap
const res = await telegram.sendChecklist({ /* ... */ });
发送联系
POST telegram.sendContact
POST https://api.telegram.org/bot{token}/sendContact
成本等级 : cheap
const res = await telegram.sendContact({ /* ... */ });
发送目录
POST telegram.sendDice
POST https://api.telegram.org/bot{token}/sendDice
成本等级 : cheap
const res = await telegram.sendDice({ /* ... */ });
发送文档
POST telegram.sendDocument
POST https://api.telegram.org/bot{token}/sendDocument
成本等级 : cheap
const res = await telegram.sendDocument({ /* ... */ });
发送Game
POST telegram.sendGame
POST https://api.telegram.org/bot{token}/sendGame
成本等级 : cheap
const res = await telegram.sendGame({ /* ... */ });
发送图像
POST telegram.sendGift
POST https://api.telegram.org/bot{token}/sendGift
成本等级 : cheap
const res = await telegram.sendGift({ /* ... */ });
发送发票
POST telegram.sendInvoice
POST https://api.telegram.org/bot{token}/sendInvoice
成本等级 : cheap
const res = await telegram.sendInvoice({ /* ... */ });
发送LivePhoto
POST telegram.sendLivePhoto
POST https://api.telegram.org/bot{token}/sendLivePhoto
成本等级 : cheap
const res = await telegram.sendLivePhoto({ /* ... */ });
发送地址
POST telegram.sendLocation
POST https://api.telegram.org/bot{token}/sendLocation
成本等级 : cheap
const res = await telegram.sendLocation({ /* ... */ });
发送媒体组
POST telegram.sendMediaGroup
POST https://api.telegram.org/bot{token}/sendMediaGroup
成本等级 : cheap
const res = await telegram.sendMediaGroup({ /* ... */ });
发送消息
POST telegram.sendMessage
POST https://api.telegram.org/bot{token}/sendMessage
成本等级 : cheap
const res = await telegram.sendMessage({ /* ... */ });
发送信稿
POST telegram.sendMessageDraft
POST https://api.telegram.org/bot{token}/sendMessageDraft
成本等级 : cheap
const res = await telegram.sendMessageDraft({ /* ... */ });
发送PaidMedia
POST telegram.sendPaidMedia
POST https://api.telegram.org/bot{token}/sendPaidMedia
成本等级 : cheap
const res = await telegram.sendPaidMedia({ /* ... */ });
发送图片
POST telegram.sendPhoto
POST https://api.telegram.org/bot{token}/sendPhoto
成本等级 : cheap
const res = await telegram.sendPhoto({ /* ... */ });
发送Poll
POST telegram.sendPoll
POST https://api.telegram.org/bot{token}/sendPoll
成本等级 : cheap
const res = await telegram.sendPoll({ /* ... */ });
发送 RichMessage
POST telegram.sendRichMessage
POST https://api.telegram.org/bot{token}/sendRichMessage
成本等级 : cheap
const res = await telegram.sendRichMessage({ /* ... */ });
发送 RichMessage 草稿
POST telegram.sendRichMessageDraft
POST https://api.telegram.org/bot{token}/sendRichMessageDraft
成本等级 : cheap
const res = await telegram.sendRichMessageDraft({ /* ... */ });
发送Sticker
POST telegram.sendSticker
POST https://api.telegram.org/bot{token}/sendSticker
成本等级 : cheap
const res = await telegram.sendSticker({ /* ... */ });
发送窗口
POST telegram.sendVenue
POST https://api.telegram.org/bot{token}/sendVenue
成本等级 : cheap
const res = await telegram.sendVenue({ /* ... */ });
发送视频
POST telegram.sendVideo
POST https://api.telegram.org/bot{token}/sendVideo
成本等级 : cheap
const res = await telegram.sendVideo({ /* ... */ });
发送视频注释
POST telegram.sendVideoNote
POST https://api.telegram.org/bot{token}/sendVideoNote
成本等级 : cheap
const res = await telegram.sendVideoNote({ /* ... */ });
发送声音
POST telegram.sendVoice
POST https://api.telegram.org/bot{token}/sendVoice
成本等级 : cheap
const res = await telegram.sendVoice({ /* ... */ });
商业账户Bio
POST telegram.setBusinessAccountBio
POST https://api.telegram.org/bot{token}/setBusinessAccountBio
成本等级 : cheap
const res = await telegram.setBusinessAccountBio({ /* ... */ });
商业账户设置
POST telegram.setBusinessAccountGiftSettings
POST https://api.telegram.org/bot{token}/setBusinessAccountGiftSettings
成本等级 : cheap
const res = await telegram.setBusinessAccountGiftSettings({ /* ... */ });
设置商业账户Name
POST telegram.setBusinessAccountName
POST https://api.telegram.org/bot{token}/setBusinessAccountName
成本等级 : cheap
const res = await telegram.setBusinessAccountName({ /* ... */ });
设置商业账户ProfilePhoto
POST telegram.setBusinessAccountProfilePhoto
POST https://api.telegram.org/bot{token}/setBusinessAccountProfilePhoto
成本等级 : cheap
const res = await telegram.setBusinessAccountProfilePhoto({ /* ... */ });
设置商业账户用户名
POST telegram.setBusinessAccountUsername
POST https://api.telegram.org/bot{token}/setBusinessAccountUsername
成本等级 : cheap
const res = await telegram.setBusinessAccountUsername({ /* ... */ });
资料来源:[`包装/p