@apicity/telegram
Telegram Bot API provider for sending messages, media, polls, and rich messages.
Runtime dependencies:
zod@^4.6.6— request schemas attached to every POST endpoint as.schema
Installation
npm install @apicity/telegram
# or
pnpm add @apicity/telegram
Quick Start
import { createTelegram } from "@apicity/telegram";
const telegram = createTelegram({ botToken: process.env.TELEGRAM_BOT_KEY! });
Setup
This package uses a Telegram Bot API token. In this repo,
TELEGRAM_BOT_KEY resolves from 1Password for @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",
});
Notes
chat_idcan be a numeric chat id or a username such as@channelname.photo,video,audio,thumbnail, andcoveraccept a Telegramfile_id, an HTTP URL, anattach://...reference, or aBlob.- Blob payloads are sent as
multipart/form-data; string payloads useapplication/json. - Recorded examples redact bot tokens, webhook secret tokens, payment payloads, passport data, Telegram file identifiers, and Blob bytes.
API Reference
180 endpoints across 180 groups. Each method mirrors an upstream URL path.
addStickerToSet
POST telegram.addStickerToSet
POST https://api.telegram.org/bot{token}/addStickerToSet
Cost tier: cheap
const res = await telegram.addStickerToSet({ /* ... */ });
answerCallbackQuery
POST telegram.answerCallbackQuery
POST https://api.telegram.org/bot{token}/answerCallbackQuery
Cost tier: cheap
const res = await telegram.answerCallbackQuery({ /* ... */ });
answerChatJoinRequestQuery
POST telegram.answerChatJoinRequestQuery
POST https://api.telegram.org/bot{token}/answerChatJoinRequestQuery
Cost tier: cheap
const res = await telegram.answerChatJoinRequestQuery({ /* ... */ });
answerGuestQuery
POST telegram.answerGuestQuery
POST https://api.telegram.org/bot{token}/answerGuestQuery
Cost tier: cheap
const res = await telegram.answerGuestQuery({ /* ... */ });
answerInlineQuery
POST telegram.answerInlineQuery
POST https://api.telegram.org/bot{token}/answerInlineQuery
Cost tier: cheap
const res = await telegram.answerInlineQuery({ /* ... */ });
answerPreCheckoutQuery
POST telegram.answerPreCheckoutQuery
POST https://api.telegram.org/bot{token}/answerPreCheckoutQuery
Cost tier: cheap
const res = await telegram.answerPreCheckoutQuery({ /* ... */ });
answerShippingQuery
POST telegram.answerShippingQuery
POST https://api.telegram.org/bot{token}/answerShippingQuery
Cost tier: cheap
const res = await telegram.answerShippingQuery({ /* ... */ });
answerWebAppQuery
POST telegram.answerWebAppQuery
POST https://api.telegram.org/bot{token}/answerWebAppQuery
Cost tier: cheap
const res = await telegram.answerWebAppQuery({ /* ... */ });
approveChatJoinRequest
POST telegram.approveChatJoinRequest
POST https://api.telegram.org/bot{token}/approveChatJoinRequest
Cost tier: cheap
const res = await telegram.approveChatJoinRequest({ /* ... */ });
approveSuggestedPost
POST telegram.approveSuggestedPost
POST https://api.telegram.org/bot{token}/approveSuggestedPost
Cost tier: cheap
const res = await telegram.approveSuggestedPost({ /* ... */ });
banChatMember
POST telegram.banChatMember
POST https://api.telegram.org/bot{token}/banChatMember
Cost tier: cheap
const res = await telegram.banChatMember({ /* ... */ });
banChatSenderChat
POST telegram.banChatSenderChat
POST https://api.telegram.org/bot{token}/banChatSenderChat
Cost tier: cheap
const res = await telegram.banChatSenderChat({ /* ... */ });
close
POST telegram.close
POST https://api.telegram.org/bot{token}/close
Cost tier: cheap
const res = await telegram.close({ /* ... */ });
closeForumTopic
POST telegram.closeForumTopic
POST https://api.telegram.org/bot{token}/closeForumTopic
Cost tier: cheap
const res = await telegram.closeForumTopic({ /* ... */ });
closeGeneralForumTopic
POST telegram.closeGeneralForumTopic
POST https://api.telegram.org/bot{token}/closeGeneralForumTopic
Cost tier: cheap
const res = await telegram.closeGeneralForumTopic({ /* ... */ });
convertGiftToStars
POST telegram.convertGiftToStars
POST https://api.telegram.org/bot{token}/convertGiftToStars
Cost tier: cheap
const res = await telegram.convertGiftToStars({ /* ... */ });
copyMessage
POST telegram.copyMessage
POST https://api.telegram.org/bot{token}/copyMessage
Cost tier: cheap
const res = await telegram.copyMessage({ /* ... */ });
copyMessages
POST telegram.copyMessages
POST https://api.telegram.org/bot{token}/copyMessages
Cost tier: cheap
const res = await telegram.copyMessages({ /* ... */ });
createChatInviteLink
POST telegram.createChatInviteLink
POST https://api.telegram.org/bot{token}/createChatInviteLink
Cost tier: cheap
const res = await telegram.createChatInviteLink({ /* ... */ });
createChatSubscriptionInviteLink
POST telegram.createChatSubscriptionInviteLink
POST https://api.telegram.org/bot{token}/createChatSubscriptionInviteLink
Cost tier: cheap
const res = await telegram.createChatSubscriptionInviteLink({ /* ... */ });
createForumTopic
POST telegram.createForumTopic
POST https://api.telegram.org/bot{token}/createForumTopic
Cost tier: cheap
const res = await telegram.createForumTopic({ /* ... */ });
createInvoiceLink
POST telegram.createInvoiceLink
POST https://api.telegram.org/bot{token}/createInvoiceLink
Cost tier: cheap
const res = await telegram.createInvoiceLink({ /* ... */ });
createNewStickerSet
POST telegram.createNewStickerSet
POST https://api.telegram.org/bot{token}/createNewStickerSet
Cost tier: cheap
const res = await telegram.createNewStickerSet({ /* ... */ });
declineChatJoinRequest
POST telegram.declineChatJoinRequest
POST https://api.telegram.org/bot{token}/declineChatJoinRequest
Cost tier: cheap
const res = await telegram.declineChatJoinRequest({ /* ... */ });
declineSuggestedPost
POST telegram.declineSuggestedPost
POST https://api.telegram.org/bot{token}/declineSuggestedPost
Cost tier: cheap
const res = await telegram.declineSuggestedPost({ /* ... */ });
deleteAllMessageReactions
POST telegram.deleteAllMessageReactions
POST https://api.telegram.org/bot{token}/deleteAllMessageReactions
Cost tier: cheap
const res = await telegram.deleteAllMessageReactions({ /* ... */ });
deleteBusinessMessages
POST telegram.deleteBusinessMessages
POST https://api.telegram.org/bot{token}/deleteBusinessMessages
Cost tier: cheap
const res = await telegram.deleteBusinessMessages({ /* ... */ });
deleteChatPhoto
POST telegram.deleteChatPhoto
POST https://api.telegram.org/bot{token}/deleteChatPhoto
Cost tier: cheap
const res = await telegram.deleteChatPhoto({ /* ... */ });
deleteChatStickerSet
POST telegram.deleteChatStickerSet
POST https://api.telegram.org/bot{token}/deleteChatStickerSet
Cost tier: cheap
const res = await telegram.deleteChatStickerSet({ /* ... */ });
deleteForumTopic
POST telegram.deleteForumTopic
POST https://api.telegram.org/bot{token}/deleteForumTopic
Cost tier: cheap
const res = await telegram.deleteForumTopic({ /* ... */ });
deleteMessage
POST telegram.deleteMessage
POST https://api.telegram.org/bot{token}/deleteMessage
Cost tier: cheap
const res = await telegram.deleteMessage({ /* ... */ });
deleteMessageReaction
POST telegram.deleteMessageReaction
POST https://api.telegram.org/bot{token}/deleteMessageReaction
Cost tier: cheap
const res = await telegram.deleteMessageReaction({ /* ... */ });
deleteMessages
POST telegram.deleteMessages
POST https://api.telegram.org/bot{token}/deleteMessages
Cost tier: cheap
const res = await telegram.deleteMessages({ /* ... */ });
deleteMyCommands
POST telegram.deleteMyCommands
POST https://api.telegram.org/bot{token}/deleteMyCommands
Cost tier: cheap
const res = await telegram.deleteMyCommands({ /* ... */ });
deleteStickerFromSet
POST telegram.deleteStickerFromSet
POST https://api.telegram.org/bot{token}/deleteStickerFromSet
Cost tier: cheap
const res = await telegram.deleteStickerFromSet({ /* ... */ });
deleteStickerSet
POST telegram.deleteStickerSet
POST https://api.telegram.org/bot{token}/deleteStickerSet
Cost tier: cheap
const res = await telegram.deleteStickerSet({ /* ... */ });
deleteStory
POST telegram.deleteStory
POST https://api.telegram.org/bot{token}/deleteStory
Cost tier: cheap
const res = await telegram.deleteStory({ /* ... */ });
deleteWebhook
POST telegram.deleteWebhook
POST https://api.telegram.org/bot{token}/deleteWebhook
Cost tier: cheap
const res = await telegram.deleteWebhook({ /* ... */ });
editChatInviteLink
POST telegram.editChatInviteLink
POST https://api.telegram.org/bot{token}/editChatInviteLink
Cost tier: cheap
const res = await telegram.editChatInviteLink({ /* ... */ });
editChatSubscriptionInviteLink
POST telegram.editChatSubscriptionInviteLink
POST https://api.telegram.org/bot{token}/editChatSubscriptionInviteLink
Cost tier: cheap
const res = await telegram.editChatSubscriptionInviteLink({ /* ... */ });
editForumTopic
POST telegram.editForumTopic
POST https://api.telegram.org/bot{token}/editForumTopic
Cost tier: cheap
const res = await telegram.editForumTopic({ /* ... */ });
editGeneralForumTopic
POST telegram.editGeneralForumTopic
POST https://api.telegram.org/bot{token}/editGeneralForumTopic
Cost tier: cheap
const res = await telegram.editGeneralForumTopic({ /* ... */ });
editMessageCaption
POST telegram.editMessageCaption
POST https://api.telegram.org/bot{token}/editMessageCaption
Cost tier: cheap
const res = await telegram.editMessageCaption({ /* ... */ });
editMessageChecklist
POST telegram.editMessageChecklist
POST https://api.telegram.org/bot{token}/editMessageChecklist
Cost tier: cheap
const res = await telegram.editMessageChecklist({ /* ... */ });
editMessageLiveLocation
POST telegram.editMessageLiveLocation
POST https://api.telegram.org/bot{token}/editMessageLiveLocation
Cost tier: cheap
const res = await telegram.editMessageLiveLocation({ /* ... */ });
editMessageMedia
POST telegram.editMessageMedia
POST https://api.telegram.org/bot{token}/editMessageMedia
Cost tier: cheap
const res = await telegram.editMessageMedia({ /* ... */ });
editMessageReplyMarkup
POST telegram.editMessageReplyMarkup
POST https://api.telegram.org/bot{token}/editMessageReplyMarkup
Cost tier: cheap
const res = await telegram.editMessageReplyMarkup({ /* ... */ });
editMessageText
POST telegram.editMessageText
POST https://api.telegram.org/bot{token}/editMessageText
Cost tier: cheap
const res = await telegram.editMessageText({ /* ... */ });
editStory
POST telegram.editStory
POST https://api.telegram.org/bot{token}/editStory
Cost tier: cheap
const res = await telegram.editStory({ /* ... */ });
editUserStarSubscription
POST telegram.editUserStarSubscription
POST https://api.telegram.org/bot{token}/editUserStarSubscription
Cost tier: cheap
const res = await telegram.editUserStarSubscription({ /* ... */ });
exportChatInviteLink
POST telegram.exportChatInviteLink
POST https://api.telegram.org/bot{token}/exportChatInviteLink
Cost tier: cheap
const res = await telegram.exportChatInviteLink({ /* ... */ });
forwardMessage
POST telegram.forwardMessage
POST https://api.telegram.org/bot{token}/forwardMessage
Cost tier: cheap
const res = await telegram.forwardMessage({ /* ... */ });
forwardMessages
POST telegram.forwardMessages
POST https://api.telegram.org/bot{token}/forwardMessages
Cost tier: cheap
const res = await telegram.forwardMessages({ /* ... */ });
getAvailableGifts
POST telegram.getAvailableGifts
POST https://api.telegram.org/bot{token}/getAvailableGifts
Cost tier: cheap
const res = await telegram.getAvailableGifts({ /* ... */ });
getBusinessAccountGifts
POST telegram.getBusinessAccountGifts
POST https://api.telegram.org/bot{token}/getBusinessAccountGifts
Cost tier: cheap
const res = await telegram.getBusinessAccountGifts({ /* ... */ });
getBusinessAccountStarBalance
POST telegram.getBusinessAccountStarBalance
POST https://api.telegram.org/bot{token}/getBusinessAccountStarBalance
Cost tier: cheap
const res = await telegram.getBusinessAccountStarBalance({ /* ... */ });
getBusinessConnection
POST telegram.getBusinessConnection
POST https://api.telegram.org/bot{token}/getBusinessConnection
Cost tier: cheap
const res = await telegram.getBusinessConnection({ /* ... */ });
getChat
POST telegram.getChat
POST https://api.telegram.org/bot{token}/getChat
Cost tier: cheap
const res = await telegram.getChat({ /* ... */ });
getChatAdministrators
POST telegram.getChatAdministrators
POST https://api.telegram.org/bot{token}/getChatAdministrators
Cost tier: cheap
const res = await telegram.getChatAdministrators({ /* ... */ });
getChatGifts
POST telegram.getChatGifts
POST https://api.telegram.org/bot{token}/getChatGifts
Cost tier: cheap
const res = await telegram.getChatGifts({ /* ... */ });
getChatMember
POST telegram.getChatMember
POST https://api.telegram.org/bot{token}/getChatMember
Cost tier: cheap
const res = await telegram.getChatMember({ /* ... */ });
getChatMemberCount
POST telegram.getChatMemberCount
POST https://api.telegram.org/bot{token}/getChatMemberCount
Cost tier: cheap
const res = await telegram.getChatMemberCount({ /* ... */ });
getChatMenuButton
POST telegram.getChatMenuButton
POST https://api.telegram.org/bot{token}/getChatMenuButton
Cost tier: cheap
const res = await telegram.getChatMenuButton({ /* ... */ });
getCustomEmojiStickers
POST telegram.getCustomEmojiStickers
POST https://api.telegram.org/bot{token}/getCustomEmojiStickers
Cost tier: cheap
const res = await telegram.getCustomEmojiStickers({ /* ... */ });
getFile
POST telegram.getFile
POST https://api.telegram.org/bot{token}/getFile
Cost tier: cheap
const res = await telegram.getFile({ /* ... */ });
getForumTopicIconStickers
POST telegram.getForumTopicIconStickers
POST https://api.telegram.org/bot{token}/getForumTopicIconStickers
Cost tier: cheap
const res = await telegram.getForumTopicIconStickers({ /* ... */ });
getGameHighScores
POST telegram.getGameHighScores
POST https://api.telegram.org/bot{token}/getGameHighScores
Cost tier: cheap
const res = await telegram.getGameHighScores({ /* ... */ });
getManagedBotAccessSettings
POST telegram.getManagedBotAccessSettings
POST https://api.telegram.org/bot{token}/getManagedBotAccessSettings
Cost tier: cheap
const res = await telegram.getManagedBotAccessSettings({ /* ... */ });
getManagedBotToken
POST telegram.getManagedBotToken
POST https://api.telegram.org/bot{token}/getManagedBotToken
Cost tier: cheap
const res = await telegram.getManagedBotToken({ /* ... */ });
getMe
POST telegram.getMe
POST https://api.telegram.org/bot{token}/getMe
Cost tier: cheap
const res = await telegram.getMe({ /* ... */ });
getMyCommands
POST telegram.getMyCommands
POST https://api.telegram.org/bot{token}/getMyCommands
Cost tier: cheap
const res = await telegram.getMyCommands({ /* ... */ });
getMyDefaultAdministratorRights
POST telegram.getMyDefaultAdministratorRights
POST https://api.telegram.org/bot{token}/getMyDefaultAdministratorRights
Cost tier: cheap
const res = await telegram.getMyDefaultAdministratorRights({ /* ... */ });
getMyDescription
POST telegram.getMyDescription
POST https://api.telegram.org/bot{token}/getMyDescription
Cost tier: cheap
const res = await telegram.getMyDescription({ /* ... */ });
getMyName
POST telegram.getMyName
POST https://api.telegram.org/bot{token}/getMyName
Cost tier: cheap
const res = await telegram.getMyName({ /* ... */ });
getMyShortDescription
POST telegram.getMyShortDescription
POST https://api.telegram.org/bot{token}/getMyShortDescription
Cost tier: cheap
const res = await telegram.getMyShortDescription({ /* ... */ });
getMyStarBalance
POST telegram.getMyStarBalance
POST https://api.telegram.org/bot{token}/getMyStarBalance
Cost tier: cheap
const res = await telegram.getMyStarBalance({ /* ... */ });
getStarTransactions
POST telegram.getStarTransactions
POST https://api.telegram.org/bot{token}/getStarTransactions
Cost tier: cheap
const res = await telegram.getStarTransactions({ /* ... */ });
getStickerSet
POST telegram.getStickerSet
POST https://api.telegram.org/bot{token}/getStickerSet
Cost tier: cheap
const res = await telegram.getStickerSet({ /* ... */ });
getUpdates
POST telegram.getUpdates
POST https://api.telegram.org/bot{token}/getUpdates
Cost tier: cheap
const res = await telegram.getUpdates({ /* ... */ });
getUserChatBoosts
POST telegram.getUserChatBoosts
POST https://api.telegram.org/bot{token}/getUserChatBoosts
Cost tier: cheap
const res = await telegram.getUserChatBoosts({ /* ... */ });
getUserGifts
POST telegram.getUserGifts
POST https://api.telegram.org/bot{token}/getUserGifts
Cost tier: cheap
const res = await telegram.getUserGifts({ /* ... */ });
getUserPersonalChatMessages
POST telegram.getUserPersonalChatMessages
POST https://api.telegram.org/bot{token}/getUserPersonalChatMessages
Cost tier: cheap
const res = await telegram.getUserPersonalChatMessages({ /* ... */ });
getUserProfileAudios
POST telegram.getUserProfileAudios
POST https://api.telegram.org/bot{token}/getUserProfileAudios
Cost tier: cheap
const res = await telegram.getUserProfileAudios({ /* ... */ });
getUserProfilePhotos
POST telegram.getUserProfilePhotos
POST https://api.telegram.org/bot{token}/getUserProfilePhotos
Cost tier: cheap
const res = await telegram.getUserProfilePhotos({ /* ... */ });
getWebhookInfo
POST telegram.getWebhookInfo
POST https://api.telegram.org/bot{token}/getWebhookInfo
Cost tier: cheap
const res = await telegram.getWebhookInfo({ /* ... */ });
giftPremiumSubscription
POST telegram.giftPremiumSubscription
POST https://api.telegram.org/bot{token}/giftPremiumSubscription
Cost tier: cheap
const res = await telegram.giftPremiumSubscription({ /* ... */ });
hideGeneralForumTopic
POST telegram.hideGeneralForumTopic
POST https://api.telegram.org/bot{token}/hideGeneralForumTopic
Cost tier: cheap
const res = await telegram.hideGeneralForumTopic({ /* ... */ });
leaveChat
POST telegram.leaveChat
POST https://api.telegram.org/bot{token}/leaveChat
Cost tier: cheap
const res = await telegram.leaveChat({ /* ... */ });
logOut
POST telegram.logOut
POST https://api.telegram.org/bot{token}/logOut
Cost tier: cheap
const res = await telegram.logOut({ /* ... */ });
pinChatMessage
POST telegram.pinChatMessage
POST https://api.telegram.org/bot{token}/pinChatMessage
Cost tier: cheap
const res = await telegram.pinChatMessage({ /* ... */ });
postStory
POST telegram.postStory
POST https://api.telegram.org/bot{token}/postStory
Cost tier: cheap
const res = await telegram.postStory({ /* ... */ });
promoteChatMember
POST telegram.promoteChatMember
POST https://api.telegram.org/bot{token}/promoteChatMember
Cost tier: cheap
const res = await telegram.promoteChatMember({ /* ... */ });
readBusinessMessage
POST telegram.readBusinessMessage
POST https://api.telegram.org/bot{token}/readBusinessMessage
Cost tier: cheap
const res = await telegram.readBusinessMessage({ /* ... */ });
refundStarPayment
POST telegram.refundStarPayment
POST https://api.telegram.org/bot{token}/refundStarPayment
Cost tier: cheap
const res = await telegram.refundStarPayment({ /* ... */ });
removeBusinessAccountProfilePhoto
POST telegram.removeBusinessAccountProfilePhoto
POST https://api.telegram.org/bot{token}/removeBusinessAccountProfilePhoto
Cost tier: cheap
const res = await telegram.removeBusinessAccountProfilePhoto({ /* ... */ });
removeChatVerification
POST telegram.removeChatVerification
POST https://api.telegram.org/bot{token}/removeChatVerification
Cost tier: cheap
const res = await telegram.removeChatVerification({ /* ... */ });
removeMyProfilePhoto
POST telegram.removeMyProfilePhoto
POST https://api.telegram.org/bot{token}/removeMyProfilePhoto
Cost tier: cheap
const res = await telegram.removeMyProfilePhoto({ /* ... */ });
removeUserVerification
POST telegram.removeUserVerification
POST https://api.telegram.org/bot{token}/removeUserVerification
Cost tier: cheap
const res = await telegram.removeUserVerification({ /* ... */ });
reopenForumTopic
POST telegram.reopenForumTopic
POST https://api.telegram.org/bot{token}/reopenForumTopic
Cost tier: cheap
const res = await telegram.reopenForumTopic({ /* ... */ });
reopenGeneralForumTopic
POST telegram.reopenGeneralForumTopic
POST https://api.telegram.org/bot{token}/reopenGeneralForumTopic
Cost tier: cheap
const res = await telegram.reopenGeneralForumTopic({ /* ... */ });
replaceManagedBotToken
POST telegram.replaceManagedBotToken
POST https://api.telegram.org/bot{token}/replaceManagedBotToken
Cost tier: cheap
const res = await telegram.replaceManagedBotToken({ /* ... */ });
replaceStickerInSet
POST telegram.replaceStickerInSet
POST https://api.telegram.org/bot{token}/replaceStickerInSet
Cost tier: cheap
const res = await telegram.replaceStickerInSet({ /* ... */ });
repostStory
POST telegram.repostStory
POST https://api.telegram.org/bot{token}/repostStory
Cost tier: cheap
const res = await telegram.repostStory({ /* ... */ });
restrictChatMember
POST telegram.restrictChatMember
POST https://api.telegram.org/bot{token}/restrictChatMember
Cost tier: cheap
const res = await telegram.restrictChatMember({ /* ... */ });
revokeChatInviteLink
POST telegram.revokeChatInviteLink
POST https://api.telegram.org/bot{token}/revokeChatInviteLink
Cost tier: cheap
const res = await telegram.revokeChatInviteLink({ /* ... */ });
savePreparedInlineMessage
POST telegram.savePreparedInlineMessage
POST https://api.telegram.org/bot{token}/savePreparedInlineMessage
Cost tier: cheap
const res = await telegram.savePreparedInlineMessage({ /* ... */ });
savePreparedKeyboardButton
POST telegram.savePreparedKeyboardButton
POST https://api.telegram.org/bot{token}/savePreparedKeyboardButton
Cost tier: cheap
const res = await telegram.savePreparedKeyboardButton({ /* ... */ });
sendAnimation
POST telegram.sendAnimation
POST https://api.telegram.org/bot{token}/sendAnimation
Cost tier: cheap
const res = await telegram.sendAnimation({ /* ... */ });
sendAudio
POST telegram.sendAudio
POST https://api.telegram.org/bot{token}/sendAudio
Cost tier: cheap
const res = await telegram.sendAudio({ /* ... */ });
sendChatAction
POST telegram.sendChatAction
POST https://api.telegram.org/bot{token}/sendChatAction
Cost tier: cheap
const res = await telegram.sendChatAction({ /* ... */ });
sendChatJoinRequestWebApp
POST telegram.sendChatJoinRequestWebApp
POST https://api.telegram.org/bot{token}/sendChatJoinRequestWebApp
Cost tier: cheap
const res = await telegram.sendChatJoinRequestWebApp({ /* ... */ });
sendChecklist
POST telegram.sendChecklist
POST https://api.telegram.org/bot{token}/sendChecklist
Cost tier: cheap
const res = await telegram.sendChecklist({ /* ... */ });
sendContact
POST telegram.sendContact
POST https://api.telegram.org/bot{token}/sendContact
Cost tier: cheap
const res = await telegram.sendContact({ /* ... */ });
sendDice
POST telegram.sendDice
POST https://api.telegram.org/bot{token}/sendDice
Cost tier: cheap
const res = await telegram.sendDice({ /* ... */ });
sendDocument
POST telegram.sendDocument
POST https://api.telegram.org/bot{token}/sendDocument
Cost tier: cheap
const res = await telegram.sendDocument({ /* ... */ });
sendGame
POST telegram.sendGame
POST https://api.telegram.org/bot{token}/sendGame
Cost tier: cheap
const res = await telegram.sendGame({ /* ... */ });
sendGift
POST telegram.sendGift
POST https://api.telegram.org/bot{token}/sendGift
Cost tier: cheap
const res = await telegram.sendGift({ /* ... */ });
sendInvoice
POST telegram.sendInvoice
POST https://api.telegram.org/bot{token}/sendInvoice
Cost tier: cheap
const res = await telegram.sendInvoice({ /* ... */ });
sendLivePhoto
POST telegram.sendLivePhoto
POST https://api.telegram.org/bot{token}/sendLivePhoto
Cost tier: cheap
const res = await telegram.sendLivePhoto({ /* ... */ });
sendLocation
POST telegram.sendLocation
POST https://api.telegram.org/bot{token}/sendLocation
Cost tier: cheap
const res = await telegram.sendLocation({ /* ... */ });
sendMediaGroup
POST telegram.sendMediaGroup
POST https://api.telegram.org/bot{token}/sendMediaGroup
Cost tier: cheap
const res = await telegram.sendMediaGroup({ /* ... */ });
sendMessage
POST telegram.sendMessage
POST https://api.telegram.org/bot{token}/sendMessage
Cost tier: cheap
const res = await telegram.sendMessage({ /* ... */ });
sendMessageDraft
POST telegram.sendMessageDraft
POST https://api.telegram.org/bot{token}/sendMessageDraft
Cost tier: cheap
const res = await telegram.sendMessageDraft({ /* ... */ });
sendPaidMedia
POST telegram.sendPaidMedia
POST https://api.telegram.org/bot{token}/sendPaidMedia
Cost tier: cheap
const res = await telegram.sendPaidMedia({ /* ... */ });
sendPhoto
POST telegram.sendPhoto
POST https://api.telegram.org/bot{token}/sendPhoto
Cost tier: cheap
const res = await telegram.sendPhoto({ /* ... */ });
sendPoll
POST telegram.sendPoll
POST https://api.telegram.org/bot{token}/sendPoll
Cost tier: cheap
const res = await telegram.sendPoll({ /* ... */ });
sendRichMessage
POST telegram.sendRichMessage
POST https://api.telegram.org/bot{token}/sendRichMessage
Cost tier: cheap
const res = await telegram.sendRichMessage({ /* ... */ });
sendRichMessageDraft
POST telegram.sendRichMessageDraft
POST https://api.telegram.org/bot{token}/sendRichMessageDraft
Cost tier: cheap
const res = await telegram.sendRichMessageDraft({ /* ... */ });
sendSticker
POST telegram.sendSticker
POST https://api.telegram.org/bot{token}/sendSticker
Cost tier: cheap
const res = await telegram.sendSticker({ /* ... */ });
sendVenue
POST telegram.sendVenue
POST https://api.telegram.org/bot{token}/sendVenue
Cost tier: cheap
const res = await telegram.sendVenue({ /* ... */ });
sendVideo
POST telegram.sendVideo
POST https://api.telegram.org/bot{token}/sendVideo
Cost tier: cheap
const res = await telegram.sendVideo({ /* ... */ });
sendVideoNote
POST telegram.sendVideoNote
POST https://api.telegram.org/bot{token}/sendVideoNote
Cost tier: cheap
const res = await telegram.sendVideoNote({ /* ... */ });
sendVoice
POST telegram.sendVoice
POST https://api.telegram.org/bot{token}/sendVoice
Cost tier: cheap
const res = await telegram.sendVoice({ /* ... */ });
setBusinessAccountBio
POST telegram.setBusinessAccountBio
POST https://api.telegram.org/bot{token}/setBusinessAccountBio
Cost tier: cheap
const res = await telegram.setBusinessAccountBio({ /* ... */ });
setBusinessAccountGiftSettings
POST telegram.setBusinessAccountGiftSettings
POST https://api.telegram.org/bot{token}/setBusinessAccountGiftSettings
Cost tier: cheap
const res = await telegram.setBusinessAccountGiftSettings({ /* ... */ });
setBusinessAccountName
POST telegram.setBusinessAccountName
POST https://api.telegram.org/bot{token}/setBusinessAccountName
Cost tier: cheap
const res = await telegram.setBusinessAccountName({ /* ... */ });
setBusinessAccountProfilePhoto
POST telegram.setBusinessAccountProfilePhoto
POST https://api.telegram.org/bot{token}/setBusinessAccountProfilePhoto
Cost tier: cheap
const res = await telegram.setBusinessAccountProfilePhoto({ /* ... */ });
setBusinessAccountUsername
POST telegram.setBusinessAccountUsername
POST https://api.telegram.org/bot{token}/setBusinessAccountUsername
Cost tier: cheap
const res = await telegram.setBusinessAccountUsername({ /* ... */ });
Source: [`packages/p