Skip to content

Instantly share code, notes, and snippets.

@dznet
Created October 20, 2017 18:26
Show Gist options
  • Save dznet/5d727e7723a6c50f1ba7e98197938f24 to your computer and use it in GitHub Desktop.
Save dznet/5d727e7723a6c50f1ba7e98197938f24 to your computer and use it in GitHub Desktop.
TelegrafContext {
tg:
Telegram {
token: '300000002:AAAAAAAAAAAAAAA-AAAA-AA_AAAAAAAAAAAAAA',
options:
{ apiRoot: 'https://api.telegram.org',
webhookReply: true,
agent: [Object] },
response: undefined },
update:
{ update_id: 545555558,
message:
{ message_id: 696,
from: [Object],
chat: [Object],
date: 1508522718,
text: '/start',
entities: [Array] } },
options: { retryAfter: 1, handlerTimeout: 0 },
updateType: 'message',
updateSubTypes: [ 'text' ],
contextState: {},
assertShortcut: [Function: bound assertShortcut],
answerInlineQuery: [Function: bound answerInlineQuery],
answerCallbackQuery: [Function: bound answerCallbackQuery],
answerGameQuery: [Function: bound answerGameQuery],
answerShippingQuery: [Function: bound answerShippingQuery],
answerPreCheckoutQuery: [Function: bound answerPreCheckoutQuery],
editMessageText: [Function: bound editMessageText],
editMessageCaption: [Function: bound editMessageCaption],
editMessageReplyMarkup: [Function: bound editMessageReplyMarkup],
editMessageLiveLocation: [Function: bound editMessageLiveLocation],
stopMessageLiveLocation: [Function: bound stopMessageLiveLocation],
reply: [Function: bound reply],
getChat: [Function: bound getChat],
exportChatInviteLink: [Function: bound exportChatInviteLink],
kickChatMember: [Function: bound kickChatMember],
restrictChatMember: [Function: bound restrictChatMember],
promoteChatMember: [Function: bound promoteChatMember],
setChatPhoto: [Function: bound setChatPhoto],
deleteChatPhoto: [Function: bound deleteChatPhoto],
setChatTitle: [Function: bound setChatTitle],
setChatDescription: [Function: bound setChatDescription],
pinChatMessage: [Function: bound pinChatMessage],
unpinChatMessage: [Function: bound unpinChatMessage],
leaveChat: [Function: bound leaveChat],
getChatAdministrators: [Function: bound getChatAdministrators],
getChatMember: [Function: bound getChatMember],
getChatMembersCount: [Function: bound getChatMembersCount],
replyWithPhoto: [Function: bound replyWithPhoto],
replyWithAudio: [Function: bound replyWithAudio],
replyWithDocument: [Function: bound replyWithDocument],
replyWithSticker: [Function: bound replyWithSticker],
replyWithVideo: [Function: bound replyWithVideo],
replyWithVideoNote: [Function: bound replyWithVideoNote],
replyWithInvoice: [Function: bound replyWithInvoice],
replyWithGame: [Function: bound replyWithGame],
replyWithVoice: [Function: bound replyWithVoice],
replyWithChatAction: [Function: bound replyWithChatAction],
replyWithLocation: [Function: bound replyWithLocation],
replyWithVenue: [Function: bound replyWithVenue],
replyWithContact: [Function: bound replyWithContact],
getStickerSet: [Function: bound getStickerSet],
setChatStickerSet: [Function: bound setChatStickerSet],
deleteChatStickerSet: [Function: bound deleteChatStickerSet],
setStickerPositionInSet: [Function: bound setStickerPositionInSet],
deleteStickerFromSet: [Function: bound deleteStickerFromSet],
uploadStickerFile: [Function: bound uploadStickerFile],
createNewStickerSet: [Function: bound createNewStickerSet],
addStickerToSet: [Function: bound addStickerToSet],
replyWithMarkdown: [Function: bound replyWithMarkdown],
replyWithHTML: [Function: bound replyWithHTML],
deleteMessage: [Function: bound deleteMessage] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment