api documentation for telegram-node-bot (v4.0.5)

Module for creating Telegram bots.

table of contents

  1. module telegram-node-bot
    1. function telegram-node-bot.BaseCommand (scope)
    2. function telegram-node-bot.BaseLogger (data)
    3. function telegram-node-bot.BaseScopeExtension (scope)
    4. function telegram-node-bot.BaseStorage (storage, key)
    5. function telegram-node-bot.BaseUpdateFetcher (api, logger)
    6. function telegram-node-bot.InlineScope (update, api, waitingChosenResults, waitingQueries)
    7. function telegram-node-bot.InputFile (fileId, filePath, fileUrl, fileName)
    8. function telegram-node-bot.RegexpCommand (regexp, handler)
    9. function telegram-node-bot.Scope ( update, api, extensions, waitingRequests, waitingCallbackQueries, logger, sessionStorage, waitForUpdate, waitForCallback )
    10. function telegram-node-bot.Telegram (token, options)
    11. function telegram-node-bot.TelegramApi (token, logger)
    12. function telegram-node-bot.TelegramBaseCallbackQueryController (query)
    13. function telegram-node-bot.TelegramBaseController ()
    14. function telegram-node-bot.TelegramBaseInlineQueryController ()
    15. function telegram-node-bot.TextCommand (textPattern, handler)
    16. object telegram-node-bot.Models
  2. module telegram-node-bot.Models
    1. function telegram-node-bot.Models.Animation (fileId, thumb, fileName, mimeType, fileSize)
    2. function telegram-node-bot.Models.Audio (fileId, duration, performer, title, mimeType, fileSize)
    3. function telegram-node-bot.Models.CallbackQuery ( id, from, message, inlineMessageId, chatInstance, data, gameShortName )
    4. function telegram-node-bot.Models.Chat ( id, type, title, username, firstName, lastName, allMembersAreAdministrators )
    5. function telegram-node-bot.Models.ChatMember (user, status)
    6. function telegram-node-bot.Models.ChosenInlineResult (resultId, from, location, inlineMessageId, query)
    7. function telegram-node-bot.Models.Contact (phoneNumber, firstName, lastName, userId)
    8. function telegram-node-bot.Models.Document (fileId, thumb, fileName, mimeType, fileSize)
    9. function telegram-node-bot.Models.File (fileId, fileSize, filePath)
    10. function telegram-node-bot.Models.ForceReply (forceReply, selective)
    11. function telegram-node-bot.Models.Game (title, description, photo, text, textEntities, animation)
    12. function telegram-node-bot.Models.GameHighScore (position, user, score)
    13. function telegram-node-bot.Models.InlineKeyboardButton (text, url, callbackData, switchInlineQuery, switchInlineQueryCurrentChat, callbackGame)
    14. function telegram-node-bot.Models.InlineKeyboardMarkup (inlineKeyboard)
    15. function telegram-node-bot.Models.InlineQuery (id, from, location, query, offset)
    16. function telegram-node-bot.Models.InlineQueryResult ()
    17. function telegram-node-bot.Models.InlineQueryResultArticle ( type, id, title, inputMessageContent, replyMarkup, url, hideUrl, description, thumbUrl, thumbWidth, thumbHeight )
    18. function telegram-node-bot.Models.InlineQueryResultAudio ( type, id, audioUrl, title, caption, performer, audioDuration, replyMarkup, inputMessageContent )
    19. function telegram-node-bot.Models.InlineQueryResultCachedAudio (type, id, audioFileId, caption, replyMarkup, inputMessageContent)
    20. function telegram-node-bot.Models.InlineQueryResultCachedDocument ( type, id, title, documentFileId, description, caption, replyMarkup, inputMessageContent )
    21. function telegram-node-bot.Models.InlineQueryResultCachedGif ( type, id, gifFileId, title, caption, replyMarkup, inputMessageContent )
    22. function telegram-node-bot.Models.InlineQueryResultCachedMpeg4Gif ( type, id, mpeg4FileId, title, caption, replyMarkup, inputMessageContent )
    23. function telegram-node-bot.Models.InlineQueryResultCachedPhoto ( type, id, photoFileId, title, description, caption, replyMarkup, inputMessageContent )
    24. function telegram-node-bot.Models.InlineQueryResultCachedSticker (type, id, stickerFileId, replyMarkup, inputMessageContent)
    25. function telegram-node-bot.Models.InlineQueryResultCachedVideo ( type, id, videoFileId, title, description, caption, replyMarkup, inputMessageContent )
    26. function telegram-node-bot.Models.InlineQueryResultCachedVoice ( type, id, voiceFileId, title, caption, replyMarkup, inputMessageContent )
    27. function telegram-node-bot.Models.InlineQueryResultContact ( type, id, phoneNumber, firstName, lastName, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )
    28. function telegram-node-bot.Models.InlineQueryResultDocument ( type, id, title, caption, documentUrl, mimeType, description, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )
    29. function telegram-node-bot.Models.InlineQueryResultGame (type, id, gameShortName, replyMarkup)
    30. function telegram-node-bot.Models.InlineQueryResultGif ( type, id, gifUrl, gifWidth, gifHeight, thumbUrl, title, caption, replyMarkup, inputMessageContent )
    31. function telegram-node-bot.Models.InlineQueryResultLocation ( type, id, latitude, longitude, title, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )
    32. function telegram-node-bot.Models.InlineQueryResultMpeg4Gif ( type, id, mpeg4Url, mpeg4Width, mpeg4Height, thumbUrl, title, caption, replyMarkup, inputMessageContent )
    33. function telegram-node-bot.Models.InlineQueryResultPhoto ( type, id, photoUrl, thumbUrl, photoWidth, photoHeight, title, description, caption, replyMarkup, inputMessageContent )
    34. function telegram-node-bot.Models.InlineQueryResultVenue ( type, id, latitude, longitude, title, address, foursquareId, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )
    35. function telegram-node-bot.Models.InlineQueryResultVideo ( type, id, videoUrl, mimeType, thumbUrl, title, caption, videoWidth, videoHeight, videoDuration, description, replyMarkup, inputMessageContent )
    36. function telegram-node-bot.Models.InlineQueryResultVoice ( type, id, voiceUrl, title, caption, voiceDuration, replyMarkup, inputMessageContent )
    37. function telegram-node-bot.Models.InputContactMessageContent (phoneNumber, firstName, lastName)
    38. function telegram-node-bot.Models.InputLocationMessageContent (latitude, longitude)
    39. function telegram-node-bot.Models.InputMessageContent (raw)
    40. function telegram-node-bot.Models.InputTextMessageContent (messageText, parseMode, disableWebPagePreview)
    41. function telegram-node-bot.Models.InputVenueMessageContent (latitude, longitude, title, address, foursquareId)
    42. function telegram-node-bot.Models.KeyboardButton (text, requestContact, requestLocation)
    43. function telegram-node-bot.Models.Location (longitude, latitude)
    44. function telegram-node-bot.Models.Message ( messageId, from, date, chat, forwardFrom, forwardFromChat, forwardFromMessageId, forwardDate, replyToMessage, editDate, text, entities, audio, document, game, photo, sticker, video, voice, caption, contact, location, venue, newChatMember, leftChatMember, newChatTitle, newChatPhoto, deleteChatPhoto, groupChatCreated, supergroupChatCreated, channelChatCreated, migrateToChatId, migrateFromChatId, pinnedMessage )
    45. function telegram-node-bot.Models.MessageEntity (type, offset, length, url, user)
    46. function telegram-node-bot.Models.PhotoSize (fileId, width, height, fileSize)
    47. function telegram-node-bot.Models.ReplyKeyboardMarkup (keyboard, resizeKeyboard, oneTimeKeyboard, selective)
    48. function telegram-node-bot.Models.ReplyKeyboardRemove (removeKeyboard, selective)
    49. function telegram-node-bot.Models.ResponseParameters (migrateToChatId, retryAfter)
    50. function telegram-node-bot.Models.Sticker (fileId, width, height, thumb, emoji, fileSize)
    51. function telegram-node-bot.Models.Update ( updateId, message, editedMessage, channelPost, editedChannelPost, inlineQuery, chosenInlineResult, callbackQuery )
    52. function telegram-node-bot.Models.User (id, firstName, lastName, username)
    53. function telegram-node-bot.Models.UserProfilePhotos (totalCount, photos)
    54. function telegram-node-bot.Models.Venue (location, title, address, foursquareId)
    55. function telegram-node-bot.Models.Video ( fileId, width, height, duration, thumb, mimeType, fileSize )
    56. function telegram-node-bot.Models.Voice (fileId, duration, mimeType, fileSize)
    57. function telegram-node-bot.Models.WebhookInfo ( url, hasCustomCertificate, pendingUpdateCount, lastErrorDate, lastErrorMessage, maxConnections, allowedUpdates )

module telegram-node-bot

function telegram-node-bot.BaseCommand (scope)

function telegram-node-bot.BaseLogger (data)

function telegram-node-bot.BaseScopeExtension (scope)

function telegram-node-bot.BaseStorage (storage, key)

function telegram-node-bot.BaseUpdateFetcher (api, logger)

function telegram-node-bot.InlineScope (update, api, waitingChosenResults, waitingQueries)

function telegram-node-bot.InputFile (fileId, filePath, fileUrl, fileName)

function telegram-node-bot.RegexpCommand (regexp, handler)

function telegram-node-bot.Scope ( update, api, extensions, waitingRequests, waitingCallbackQueries, logger, sessionStorage, waitForUpdate, waitForCallback )

function telegram-node-bot.Telegram (token, options)

function telegram-node-bot.TelegramApi (token, logger)

function telegram-node-bot.TelegramBaseCallbackQueryController (query)

function telegram-node-bot.TelegramBaseController ()

function telegram-node-bot.TelegramBaseInlineQueryController ()

function telegram-node-bot.TextCommand (textPattern, handler)

module telegram-node-bot.Models

function telegram-node-bot.Models.Animation (fileId, thumb, fileName, mimeType, fileSize)

function telegram-node-bot.Models.Audio (fileId, duration, performer, title, mimeType, fileSize)

function telegram-node-bot.Models.CallbackQuery ( id, from, message, inlineMessageId, chatInstance, data, gameShortName )

function telegram-node-bot.Models.Chat ( id, type, title, username, firstName, lastName, allMembersAreAdministrators )

function telegram-node-bot.Models.ChatMember (user, status)

function telegram-node-bot.Models.ChosenInlineResult (resultId, from, location, inlineMessageId, query)

function telegram-node-bot.Models.Contact (phoneNumber, firstName, lastName, userId)

function telegram-node-bot.Models.Document (fileId, thumb, fileName, mimeType, fileSize)

function telegram-node-bot.Models.File (fileId, fileSize, filePath)

function telegram-node-bot.Models.ForceReply (forceReply, selective)

function telegram-node-bot.Models.Game (title, description, photo, text, textEntities, animation)

function telegram-node-bot.Models.GameHighScore (position, user, score)

function telegram-node-bot.Models.InlineKeyboardButton (text, url, callbackData, switchInlineQuery, switchInlineQueryCurrentChat, callbackGame)

function telegram-node-bot.Models.InlineKeyboardMarkup (inlineKeyboard)

function telegram-node-bot.Models.InlineQuery (id, from, location, query, offset)

function telegram-node-bot.Models.InlineQueryResult ()

function telegram-node-bot.Models.InlineQueryResultArticle ( type, id, title, inputMessageContent, replyMarkup, url, hideUrl, description, thumbUrl, thumbWidth, thumbHeight )

function telegram-node-bot.Models.InlineQueryResultAudio ( type, id, audioUrl, title, caption, performer, audioDuration, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedAudio (type, id, audioFileId, caption, replyMarkup, inputMessageContent)

function telegram-node-bot.Models.InlineQueryResultCachedDocument ( type, id, title, documentFileId, description, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedGif ( type, id, gifFileId, title, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedMpeg4Gif ( type, id, mpeg4FileId, title, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedPhoto ( type, id, photoFileId, title, description, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedSticker (type, id, stickerFileId, replyMarkup, inputMessageContent)

function telegram-node-bot.Models.InlineQueryResultCachedVideo ( type, id, videoFileId, title, description, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultCachedVoice ( type, id, voiceFileId, title, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultContact ( type, id, phoneNumber, firstName, lastName, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )

function telegram-node-bot.Models.InlineQueryResultDocument ( type, id, title, caption, documentUrl, mimeType, description, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )

function telegram-node-bot.Models.InlineQueryResultGame (type, id, gameShortName, replyMarkup)

function telegram-node-bot.Models.InlineQueryResultGif ( type, id, gifUrl, gifWidth, gifHeight, thumbUrl, title, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultLocation ( type, id, latitude, longitude, title, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )

function telegram-node-bot.Models.InlineQueryResultMpeg4Gif ( type, id, mpeg4Url, mpeg4Width, mpeg4Height, thumbUrl, title, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultPhoto ( type, id, photoUrl, thumbUrl, photoWidth, photoHeight, title, description, caption, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultVenue ( type, id, latitude, longitude, title, address, foursquareId, replyMarkup, inputMessageContent, thumbUrl, thumbWidth, thumbHeight )

function telegram-node-bot.Models.InlineQueryResultVideo ( type, id, videoUrl, mimeType, thumbUrl, title, caption, videoWidth, videoHeight, videoDuration, description, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InlineQueryResultVoice ( type, id, voiceUrl, title, caption, voiceDuration, replyMarkup, inputMessageContent )

function telegram-node-bot.Models.InputContactMessageContent (phoneNumber, firstName, lastName)

function telegram-node-bot.Models.InputLocationMessageContent (latitude, longitude)

function telegram-node-bot.Models.InputMessageContent (raw)

function telegram-node-bot.Models.InputTextMessageContent (messageText, parseMode, disableWebPagePreview)

function telegram-node-bot.Models.InputVenueMessageContent (latitude, longitude, title, address, foursquareId)

function telegram-node-bot.Models.KeyboardButton (text, requestContact, requestLocation)

function telegram-node-bot.Models.Location (longitude, latitude)

function telegram-node-bot.Models.Message ( messageId, from, date, chat, forwardFrom, forwardFromChat, forwardFromMessageId, forwardDate, replyToMessage, editDate, text, entities, audio, document, game, photo, sticker, video, voice, caption, contact, location, venue, newChatMember, leftChatMember, newChatTitle, newChatPhoto, deleteChatPhoto, groupChatCreated, supergroupChatCreated, channelChatCreated, migrateToChatId, migrateFromChatId, pinnedMessage )

function telegram-node-bot.Models.MessageEntity (type, offset, length, url, user)

function telegram-node-bot.Models.PhotoSize (fileId, width, height, fileSize)

function telegram-node-bot.Models.ReplyKeyboardMarkup (keyboard, resizeKeyboard, oneTimeKeyboard, selective)

function telegram-node-bot.Models.ReplyKeyboardRemove (removeKeyboard, selective)

function telegram-node-bot.Models.ResponseParameters (migrateToChatId, retryAfter)

function telegram-node-bot.Models.Sticker (fileId, width, height, thumb, emoji, fileSize)

function telegram-node-bot.Models.Update ( updateId, message, editedMessage, channelPost, editedChannelPost, inlineQuery, chosenInlineResult, callbackQuery )

function telegram-node-bot.Models.User (id, firstName, lastName, username)

function telegram-node-bot.Models.UserProfilePhotos (totalCount, photos)

function telegram-node-bot.Models.Venue (location, title, address, foursquareId)

function telegram-node-bot.Models.Video ( fileId, width, height, duration, thumb, mimeType, fileSize )

function telegram-node-bot.Models.Voice (fileId, duration, mimeType, fileSize)

function telegram-node-bot.Models.WebhookInfo ( url, hasCustomCertificate, pendingUpdateCount, lastErrorDate, lastErrorMessage, maxConnections, allowedUpdates )

[ this document was created with utility2 ]