Types and interfaces for tgtb
Wrapper type to bundle all methods of the Telegram Bot API
- addStickerToSet
- answerCallbackQuery
- answerInlineQuery
- answerPreCheckoutQuery
- answerShippingQuery
- answerWebAppQuery
- approveChatJoinRequest
- approveSuggestedPost
- banChatMember
- banChatSenderChat
- close
- closeForumTopic
- closeGeneralForumTopic
- convertGiftToStars
- copyMessage
- copyMessages
- createChatInviteLink
- createChatSubscriptionInviteLink
- createForumTopic
- createInvoiceLink
- createNewStickerSet
- declineChatJoinRequest
- declineSuggestedPost
- deleteBusinessMessages
- deleteChatPhoto
- deleteChatStickerSet
- deleteForumTopic
- deleteMessage
- deleteMessages
- deleteMyCommands
- deleteStickerFromSet
- deleteStickerSet
- deleteStory
- deleteWebhook
- editChatInviteLink
- editChatSubscriptionInviteLink
- editForumTopic
- editGeneralForumTopic
- editMessageCaption
- editMessageChecklist
- editMessageLiveLocation
- editMessageMedia
- editMessageReplyMarkup
- editMessageText
- editStory
- editUserStarSubscription
- exportChatInviteLink
- forwardMessage
- forwardMessages
- getAvailableGifts
- getBusinessAccountGifts
- getBusinessAccountStarBalance
- getBusinessConnection
- getChat
- getChatAdministrators
- getChatGifts
- getChatMember
- getChatMemberCount
- getChatMembersCount
- getChatMenuButton
- getCustomEmojiStickers
- getFile
- getForumTopicIconStickers
- getGameHighScores
- getMe
- getMyCommands
- getMyDefaultAdministratorRights
- getMyDescription
- getMyName
- getMyShortDescription
- getMyStarBalance
- getStarTransactions
- getStickerSet
- getUpdates
- getUserChatBoosts
- getUserGifts
- getUserProfilePhotos
- getWebhookInfo
- giftPremiumSubscription
- hideGeneralForumTopic
- kickChatMember
- leaveChat
- logOut
- pinChatMessage
- postStory
- promoteChatMember
- readBusinessMessage
- refundStarPayment
- removeBusinessAccountProfilePhoto
- removeChatVerification
- removeUserVerification
- reopenForumTopic
- reopenGeneralForumTopic
- replaceStickerInSet
- repostStory
- restrictChatMember
- revokeChatInviteLink
- savePreparedInlineMessage
- sendAnimation
- sendAudio
- sendChatAction
- sendChecklist
- sendContact
- sendDice
- sendDocument
- sendGame
- sendGift
- sendInvoice
- sendLocation
- sendMediaGroup
- sendMessage
- sendMessageDraft
- sendPaidMedia
- sendPhoto
- sendPoll
- sendSticker
- sendVenue
- sendVideo
- sendVideoNote
- sendVoice
- setBusinessAccountBio
- setBusinessAccountGiftSettings
- setBusinessAccountName
- setBusinessAccountProfilePhoto
- setBusinessAccountUsername
- setChatAdministratorCustomTitle
- setChatDescription
- setChatMenuButton
- setChatPermissions
- setChatPhoto
- setChatStickerSet
- setChatTitle
- setCustomEmojiStickerSetThumbnail
- setGameScore
- setMessageReaction
- setMyCommands
- setMyDefaultAdministratorRights
- setMyDescription
- setMyName
- setMyShortDescription
- setPassportDataErrors
- setStickerEmojiList
- setStickerKeywords
- setStickerMaskPosition
- setStickerPositionInSet
- setStickerSetThumbnail
- setStickerSetTitle
- setUserEmojiStatus
- setWebhook
- stopMessageLiveLocation
- stopPoll
- transferBusinessAccountStars
- transferGift
- unbanChatMember
- unbanChatSenderChat
- unhideGeneralForumTopic
- unpinAllChatMessages
- unpinAllForumTopicMessages
- unpinAllGeneralForumTopicMessages
- unpinChatMessage
- upgradeGift
- uploadStickerFile
- verifyChat
- verifyUser
The response contains an object, which always has a Boolean field 'ok' and may have an optional String field 'description' with a human-readable description of the result. If 'ok' equals true, the request was successful and the result of the query can be found in the 'result' field. In case of an unsuccessful request, 'ok' equals false and the error is explained in the 'description'. An Integer 'error_code' field is also returned, but its contents are subject to change in the future. Some errors may also have an optional field 'parameters' of the type ResponseParameters, which can help to automatically handle the error.
Utility type providing the argument type for the given method name or {} if the method does not take any parameters
Usage
import * as mod from "types/interface.ts";