SYMBOL INDEX (252 symbols across 13 files) FILE: examples/game/game.js constant TOKEN (line 6) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/polling.js constant TOKEN (line 7) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/webhook/express.js constant TOKEN (line 7) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/webhook/heroku.js constant TOKEN (line 7) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/webhook/https.js constant TOKEN (line 7) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/webhook/now.js constant TOKEN (line 8) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: examples/webhook/openshift2.js constant TOKEN (line 19) | const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; FILE: src/errors.js method constructor (line 9) | constructor(code, message) { method toJSON (line 13) | toJSON() { method constructor (line 29) | constructor(data) { method constructor (line 49) | constructor(message, response) { method constructor (line 64) | constructor(message, response) { FILE: src/telegram.js constant URL (line 16) | const URL = require('url'); function stringify (line 72) | function stringify(data) { class TelegramBot (line 80) | class TelegramBot extends EventEmitter { method errors (line 85) | static get errors() { method messageTypes (line 93) | static get messageTypes() { method on (line 105) | on(event, listener) { method constructor (line 163) | constructor(token, options = {}) { method _buildURL (line 200) | _buildURL(_path) { method _fixReplyMarkup (line 211) | _fixReplyMarkup(obj) { method _fixEntitiesField (line 227) | _fixEntitiesField(obj) { method _fixAddFileThumbnail (line 244) | _fixAddFileThumbnail(options, opts) { method _fixMessageIds (line 264) | _fixMessageIds(obj) { method _fixReplyParameters (line 278) | _fixReplyParameters(obj) { method _request (line 291) | _request(_path, options = {}) { method _formatSendData (line 352) | _formatSendData(type, data, fileOptions = {}) { method _formatSendMultipleData (line 437) | _formatSendMultipleData(type, files, fileOptions = {}) { method startPolling (line 502) | startPolling(options = {}) { method initPolling (line 519) | initPolling() { method stopPolling (line 533) | stopPolling(options) { method getFileLink (line 553) | getFileLink(fileId, form = {}) { method getFileStream (line 573) | getFileStream(fileId, form = {}) { method downloadFile (line 600) | downloadFile(fileId, downloadDir, form = {}) { method onText (line 629) | onText(regexp, callback) { method removeTextListener (line 640) | removeTextListener(regexp) { method clearTextListeners (line 653) | clearTextListeners() { method onReplyToMessage (line 666) | onReplyToMessage(chatId, messageId, callback) { method removeReplyListener (line 684) | removeReplyListener(replyListenerId) { method clearReplyListeners (line 699) | clearReplyListeners() { method isPolling (line 708) | isPolling() { method openWebHook (line 719) | openWebHook() { method closeWebHook (line 735) | closeWebHook() { method hasOpenWebHook (line 748) | hasOpenWebHook() { method processUpdate (line 761) | processUpdate(update) { method getUpdates (line 925) | getUpdates(form = {}) { method setWebHook (line 964) | setWebHook(url, options = {}, fileOptions = {}) { method deleteWebHook (line 1003) | deleteWebHook(form = {}) { method getWebHookInfo (line 1016) | getWebHookInfo(form = {}) { method getMe (line 1027) | getMe(form = {}) { method logOut (line 1040) | logOut(form = {}) { method close (line 1052) | close(form = {}) { method sendMessage (line 1064) | sendMessage(chatId, text, form = {}) { method forwardMessage (line 1081) | forwardMessage(chatId, fromChatId, messageId, form = {}) { method forwardMessages (line 1102) | forwardMessages(chatId, fromChatId, messageIds, form = {}) { method copyMessage (line 1122) | copyMessage(chatId, fromChatId, messageId, form = {}) { method copyMessages (line 1142) | copyMessages(chatId, fromChatId, messageIds, form = {}) { method sendPhoto (line 1160) | sendPhoto(chatId, photo, options = {}, fileOptions = {}) { method sendAudio (line 1189) | sendAudio(chatId, audio, options = {}, fileOptions = {}) { method sendDocument (line 1219) | sendDocument(chatId, doc, options = {}, fileOptions = {}) { method sendVideo (line 1248) | sendVideo(chatId, video, options = {}, fileOptions = {}) { method sendAnimation (line 1275) | sendAnimation(chatId, animation, options = {}, fileOptions = {}) { method sendVoice (line 1303) | sendVoice(chatId, voice, options = {}, fileOptions = {}) { method sendVideoNote (line 1331) | sendVideoNote(chatId, videoNote, options = {}, fileOptions = {}) { method sendPaidMedia (line 1356) | sendPaidMedia(chatId, starCount, media, options = {}) { method sendMediaGroup (line 1405) | sendMediaGroup(chatId, media, options = {}) { method sendLocation (line 1450) | sendLocation(chatId, latitude, longitude, form = {}) { method editMessageLiveLocation (line 1472) | editMessageLiveLocation(latitude, longitude, form = {}) { method stopMessageLiveLocation (line 1489) | stopMessageLiveLocation(form = {}) { method sendVenue (line 1506) | sendVenue(chatId, latitude, longitude, title, address, form = {}) { method sendContact (line 1526) | sendContact(chatId, phoneNumber, firstName, form = {}) { method sendPoll (line 1544) | sendPoll(chatId, question, pollOptions, form = {}) { method sendChecklist (line 1562) | sendChecklist(businessConnectionId, chatId, checklist, form = {}) { method sendDice (line 1577) | sendDice(chatId, options = {}) { method sendMessageDraft (line 1601) | sendMessageDraft(chatId, draftId, text, form = {}) { method sendChatAction (line 1627) | sendChatAction(chatId, action, form = {}) { method setMessageReaction (line 1645) | setMessageReaction(chatId, messageId, form = {}) { method getUserProfilePhotos (line 1663) | getUserProfilePhotos(userId, form = {}) { method getUserProfileAudios (line 1677) | getUserProfileAudios(userId, form = {}) { method setUserEmojiStatus (line 1692) | setUserEmojiStatus(userId, form = {}) { method getFile (line 1708) | getFile(fileId, form = {}) { method banChatMember (line 1727) | banChatMember(chatId, userId, form = {}) { method unbanChatMember (line 1749) | unbanChatMember(chatId, userId, form = {}) { method restrictChatMember (line 1767) | restrictChatMember(chatId, userId, form = {}) { method promoteChatMember (line 1784) | promoteChatMember(chatId, userId, form = {}) { method setChatAdministratorCustomTitle (line 1800) | setChatAdministratorCustomTitle(chatId, userId, customTitle, form = {}) { method setChatMemberTag (line 1818) | setChatMemberTag(chatId, userId, form = {}) { method banChatSenderChat (line 1836) | banChatSenderChat(chatId, senderChatId, form = {}) { method unbanChatSenderChat (line 1853) | unbanChatSenderChat(chatId, senderChatId, form = {}) { method setChatPermissions (line 1871) | setChatPermissions(chatId, chatPermissions, form = {}) { method exportChatInviteLink (line 1887) | exportChatInviteLink(chatId, form = {}) { method createChatInviteLink (line 1904) | createChatInviteLink(chatId, form = {}) { method editChatInviteLink (line 1920) | editChatInviteLink(chatId, inviteLink, form = {}) { method createChatSubscriptionInviteLink (line 1938) | createChatSubscriptionInviteLink(chatId, subscriptionPeriod, subscript... method editChatSubscriptionInviteLink (line 1956) | editChatSubscriptionInviteLink(chatId, inviteLink, form = {}) { method revokeChatInviteLink (line 1974) | revokeChatInviteLink(chatId, inviteLink, form = {}) { method approveChatJoinRequest (line 1991) | approveChatJoinRequest(chatId, userId, form = {}) { method declineChatJoinRequest (line 2008) | declineChatJoinRequest(chatId, userId, form = {}) { method setChatPhoto (line 2026) | setChatPhoto(chatId, photo, options = {}, fileOptions = {}) { method deleteChatPhoto (line 2051) | deleteChatPhoto(chatId, form = {}) { method setChatTitle (line 2067) | setChatTitle(chatId, title, form = {}) { method setChatDescription (line 2084) | setChatDescription(chatId, description, form = {}) { method pinChatMessage (line 2102) | pinChatMessage(chatId, messageId, form = {}) { method unpinChatMessage (line 2119) | unpinChatMessage(chatId, form = {}) { method unpinAllChatMessages (line 2135) | unpinAllChatMessages(chatId, form = {}) { method leaveChat (line 2148) | leaveChat(chatId, form = {}) { method getChat (line 2162) | getChat(chatId, form = {}) { method getChatAdministrators (line 2176) | getChatAdministrators(chatId, form = {}) { method getChatMemberCount (line 2189) | getChatMemberCount(chatId, form = {}) { method getChatMember (line 2203) | getChatMember(chatId, userId, form = {}) { method setChatStickerSet (line 2222) | setChatStickerSet(chatId, stickerSetName, form = {}) { method deleteChatStickerSet (line 2239) | deleteChatStickerSet(chatId, form = {}) { method getForumTopicIconStickers (line 2252) | getForumTopicIconStickers(chatId, form = {}) { method createForumTopic (line 2268) | createForumTopic(chatId, name, form = {}) { method editForumTopic (line 2284) | editForumTopic(chatId, messageThreadId, form = {}) { method closeForumTopic (line 2300) | closeForumTopic(chatId, messageThreadId, form = {}) { method reopenForumTopic (line 2316) | reopenForumTopic(chatId, messageThreadId, form = {}) { method deleteForumTopic (line 2332) | deleteForumTopic(chatId, messageThreadId, form = {}) { method unpinAllForumTopicMessages (line 2348) | unpinAllForumTopicMessages(chatId, messageThreadId, form = {}) { method editGeneralForumTopic (line 2365) | editGeneralForumTopic(chatId, name, form = {}) { method closeGeneralForumTopic (line 2381) | closeGeneralForumTopic(chatId, form = {}) { method reopenGeneralForumTopic (line 2396) | reopenGeneralForumTopic(chatId, form = {}) { method hideGeneralForumTopic (line 2411) | hideGeneralForumTopic(chatId, form = {}) { method unhideGeneralForumTopic (line 2425) | unhideGeneralForumTopic(chatId, form = {}) { method unpinAllGeneralForumTopicMessages (line 2439) | unpinAllGeneralForumTopicMessages(chatId, form = {}) { method answerCallbackQuery (line 2458) | answerCallbackQuery(callbackQueryId, form = {}) { method savePreparedInlineMessage (line 2495) | savePreparedInlineMessage(userId, result, form = {}) { method getUserChatBoosts (line 2511) | getUserChatBoosts(chatId, userId, form = {}) { method getBusinessConnection (line 2525) | getBusinessConnection(businessConnectionId, form = {}) { method setMyCommands (line 2540) | setMyCommands(commands, form = {}) { method deleteMyCommands (line 2559) | deleteMyCommands(form = {}) { method getMyCommands (line 2574) | getMyCommands(form = {}) { method setMyName (line 2588) | setMyName(form = {}) { method getMyName (line 2599) | getMyName(form = {}) { method setMyDescription (line 2612) | setMyDescription(form = {}) { method getMyDescription (line 2623) | getMyDescription(form = {}) { method setMyShortDescription (line 2635) | setMyShortDescription(form = {}) { method getMyShortDescription (line 2646) | getMyShortDescription(form = {}) { method setMyProfilePhoto (line 2658) | setMyProfilePhoto(photo, options = {}) { method removeMyProfilePhoto (line 2681) | removeMyProfilePhoto(form = {}) { method setChatMenuButton (line 2692) | setChatMenuButton(form = {}) { method getChatMenuButton (line 2703) | getChatMenuButton(form = {}) { method setMyDefaultAdministratorRights (line 2716) | setMyDefaultAdministratorRights(form = {}) { method getMyDefaultAdministratorRights (line 2727) | getMyDefaultAdministratorRights(form = {}) { method editMessageText (line 2741) | editMessageText(text, form = {}) { method editMessageCaption (line 2756) | editMessageCaption(caption, form = {}) { method editMessageMedia (line 2776) | editMessageMedia(media, form = {}) { method editMessageChecklist (line 2827) | editMessageChecklist(businessConnectionId, chatId, messageId, checklis... method editMessageReplyMarkup (line 2845) | editMessageReplyMarkup(replyMarkup, form = {}) { method stopPoll (line 2859) | stopPoll(chatId, pollId, form = {}) { method approveSuggestedPost (line 2876) | approveSuggestedPost(chatId, messageId, form = {}) { method declineSuggestedPost (line 2893) | declineSuggestedPost(chatId, messageId, form = {}) { method sendSticker (line 2910) | sendSticker(chatId, sticker, options = {}, fileOptions = {}) { method getStickerSet (line 2933) | getStickerSet(name, form = {}) { method getCustomEmojiStickers (line 2946) | getCustomEmojiStickers(customEmojiIds, form = {}) { method uploadStickerFile (line 2963) | uploadStickerFile(userId, sticker, stickerFormat = 'static', options =... method createNewStickerSet (line 2999) | createNewStickerSet(userId, name, title, pngSticker, emojis, options =... method addStickerToSet (line 3041) | addStickerToSet(userId, name, sticker, emojis, stickerType = 'png_stic... method setStickerPositionInSet (line 3073) | setStickerPositionInSet(sticker, position, form = {}) { method deleteStickerFromSet (line 3088) | deleteStickerFromSet(sticker, form = {}) { method replaceStickerInSet (line 3104) | replaceStickerInSet(userId, name, oldSticker, form = {}) { method setStickerEmojiList (line 3123) | setStickerEmojiList(sticker, emojiList, form = {}) { method setStickerKeywords (line 3139) | setStickerKeywords(sticker, form = {}) { method setStickerMaskPosition (line 3157) | setStickerMaskPosition(sticker, form = {}) { method setStickerSetTitle (line 3176) | setStickerSetTitle(name, title, form = {}) { method setStickerSetThumbnail (line 3200) | setStickerSetThumbnail(userId, name, thumbnail, options = {}, fileOpti... method setCustomEmojiStickerSetThumbnail (line 3228) | setCustomEmojiStickerSetThumbnail(name, form = {}) { method deleteStickerSet (line 3243) | deleteStickerSet(name, form = {}) { method answerInlineQuery (line 3259) | answerInlineQuery(inlineQueryId, results, form = {}) { method answerWebAppQuery (line 3275) | answerWebAppQuery(webAppQueryId, result, form = {}) { method sendInvoice (line 3295) | sendInvoice(chatId, title, description, payload, providerToken, curren... method createInvoiceLink (line 3323) | createInvoiceLink(title, description, payload, providerToken, currency... method answerShippingQuery (line 3345) | answerShippingQuery(shippingQueryId, ok, form = {}) { method answerPreCheckoutQuery (line 3366) | answerPreCheckoutQuery(preCheckoutQueryId, ok, form = {}) { method getMyStarBalance (line 3379) | getMyStarBalance(form = {}) { method getStarTransactions (line 3390) | getStarTransactions(form = {}) { method refundStarPayment (line 3403) | refundStarPayment(userId, telegramPaymentChargeId, form = {}) { method editUserStarSubscription (line 3419) | editUserStarSubscription(userId, telegramPaymentChargeId, isCanceled, ... method sendGame (line 3435) | sendGame(chatId, gameShortName, form = {}) { method setGameScore (line 3450) | setGameScore(userId, score, form = {}) { method getGameHighScores (line 3466) | getGameHighScores(userId, form = {}) { method deleteMessage (line 3488) | deleteMessage(chatId, messageId, form = {}) { method deleteMessages (line 3503) | deleteMessages(chatId, messageIds, form = {}) { method getAvailableGifts (line 3516) | getAvailableGifts(form = {}) { method sendGift (line 3528) | sendGift(giftId, form = {}) { method giftPremiumSubscription (line 3543) | giftPremiumSubscription(userId, monthCount, starCount, form = {}) { method verifyUser (line 3558) | verifyUser(userId, form = {}) { method verifyChat (line 3571) | verifyChat(chatId, form = {}) { method removeUserVerification (line 3584) | removeUserVerification(userId, form = {}) { method removeChatVerification (line 3597) | removeChatVerification(chatId, form = {}) { method readBusinessMessage (line 3614) | readBusinessMessage(businessConnectionId, chatId, messageId, form = {}) { method deleteBusinessMessages (line 3632) | deleteBusinessMessages(businessConnectionId, messageIds, form = {}) { method setBusinessAccountName (line 3649) | setBusinessAccountName(businessConnectionId, firstName, form = {}) { method setBusinessAccountUsername (line 3665) | setBusinessAccountUsername(businessConnectionId, form = {}) { method setBusinessAccountBio (line 3680) | setBusinessAccountBio(businessConnectionId, form = {}) { method setBusinessAccountProfilePhoto (line 3696) | setBusinessAccountProfilePhoto(businessConnectionId, photo, options = ... method removeBusinessAccountProfilePhoto (line 3724) | removeBusinessAccountProfilePhoto(businessConnectionId, form = {}) { method setBusinessAccountGiftSettings (line 3741) | setBusinessAccountGiftSettings(businessConnectionId, showGiftButton, a... method getBusinessAccountStarBalance (line 3758) | getBusinessAccountStarBalance(businessConnectionId, form = {}) { method transferBusinessAccountStars (line 3774) | transferBusinessAccountStars(businessConnectionId, startCount, form = ... method getBusinessAccountGifts (line 3790) | getBusinessAccountGifts(businessConnectionId, form = {}) { method getUserGifts (line 3803) | getUserGifts(userId, form = {}) { method getChatGifts (line 3818) | getChatGifts(chatId, form = {}) { method convertGiftToStars (line 3834) | convertGiftToStars(businessConnectionId, ownedGiftId, form = {}) { method upgradeGift (line 3852) | upgradeGift(businessConnectionId, ownedGiftId, form = {}) { method transferGift (line 3871) | transferGift(businessConnectionId, ownedGiftId, newOwnerChatId, form =... method postStory (line 3890) | postStory(businessConnectionId, content, activePeriod, options = {}) { method repostStory (line 3938) | repostStory(businessConnectionId, fromChatId, fromStoryId, activePerio... method editStory (line 3958) | editStory(businessConnectionId, storyId, content, options = {}) { method deleteStory (line 4004) | deleteStory(businessConnectionId, storyId, form = {}) { FILE: src/telegramPolling.js constant ANOTHER_WEB_HOOK_USED (line 4) | const ANOTHER_WEB_HOOK_USED = 409; class TelegramBotPolling (line 7) | class TelegramBotPolling { method constructor (line 13) | constructor(bot) { method start (line 36) | start(options = {}) { method stop (line 58) | stop(options = {}) { method isPolling (line 79) | isPolling() { method _error (line 88) | _error(error) { method _polling (line 100) | _polling() { method _unsetWebHook (line 181) | _unsetWebHook() { method _getUpdates (line 189) | _getUpdates() { FILE: src/telegramWebHook.js class TelegramBotWebHook (line 8) | class TelegramBotWebHook { method constructor (line 14) | constructor(bot) { method open (line 49) | open() { method close (line 70) | close() { method isOpen (line 86) | isOpen() { method _error (line 100) | _error(error) { method _parseBody (line 111) | _parseBody(error, body) { method _requestListener (line 132) | _requestListener(req, res) { FILE: test/telegram.js constant TOKEN (line 16) | const TOKEN = process.env.TEST_TELEGRAM_TOKEN; constant PROVIDER_TOKEN (line 21) | const PROVIDER_TOKEN = process.env.TEST_PROVIDER_TOKEN; constant USERID (line 27) | const USERID = process.env.TEST_USER_ID || 777000; constant GROUPID (line 28) | const GROUPID = process.env.TEST_GROUP_ID || -1001075450562; constant GAME_SHORT_NAME (line 29) | const GAME_SHORT_NAME = process.env.TEST_GAME_SHORT_NAME || 'medusalab_t... constant STICKER_SET_NAME (line 30) | const STICKER_SET_NAME = process.env.TEST_STICKER_SET_NAME || 'pusheen'; constant CURRENT_TIMESTAMP (line 31) | const CURRENT_TIMESTAMP = Date.now(); constant FILE_PATH (line 46) | const FILE_PATH = `${__dirname}/data/photo.png`; constant FILE_ID (line 47) | let FILE_ID; constant GAME_CHAT_ID (line 48) | let GAME_CHAT_ID; constant GAME_MSG_ID (line 49) | let GAME_MSG_ID; constant BOT_USERNAME (line 50) | let BOT_USERNAME; constant CHAT_INFO (line 51) | let CHAT_INFO; constant STICKER_FILE_ID_FROM_SET (line 52) | let STICKER_FILE_ID_FROM_SET; constant STICKERS_FROM_BOT_SET (line 53) | let STICKERS_FROM_BOT_SET; FILE: test/utils.js function startMockServer (line 90) | function startMockServer(port, options = {}) { function startStaticServer (line 112) | function startStaticServer(port) { function isPollingMockServer (line 122) | function isPollingMockServer(port, reverse) { function clearPollingCheck (line 137) | function clearPollingCheck(port) { function hasOpenWebHook (line 143) | function hasOpenWebHook(port, reverse) { function sendWebHookRequest (line 162) | function sendWebHookRequest(port, path, options = {}) { function sendWebHookMessage (line 179) | function sendWebHookMessage(port, token, options = {}) { function handleRatelimit (line 187) | function handleRatelimit(bot, methodName, suite) { function isTelegramFileURI (line 228) | function isTelegramFileURI(uri) {