From 397c87a9568a37a7ef4b0104606504d66fd59f14 Mon Sep 17 00:00:00 2001 From: Alex Godko Date: Thu, 30 Jun 2016 12:18:27 +0300 Subject: [PATCH 1/2] Update README.md Added a word about "callback_query" update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ace732f..9096e0a 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ There are some other examples on [examples](https://github.com/yagop/node-telegr ### Events Every time TelegramBot receives a message, it emits a `message`. Depending on which [message](https://core.telegram.org/bots/api#message) was received, emits an event from this ones: `text`, `audio`, `document`, `photo`, `sticker`, `video`, `voice`, `contact`, `location`, `new_chat_participant`, `left_chat_participant`, `new_chat_title`, `new_chat_photo`, `delete_chat_photo`, `group_chat_created`. Its much better to listen a specific event rather than a `message` in order to stay safe from the content. -TelegramBot emits `inline_query` when receives an [Inline Query](https://core.telegram.org/bots/api#inlinequery) and `chosen_inline_result` when receives a [ChosenInlineResult](https://core.telegram.org/bots/api#choseninlineresult). Bot must be enabled on [inline mode](https://core.telegram.org/bots/api#inline-mode) +TelegramBot emits `inline_query` when receives an [Inline Query](https://core.telegram.org/bots/api#inlinequery) and `chosen_inline_result` when receives a [ChosenInlineResult](https://core.telegram.org/bots/api#choseninlineresult). Also, `callback_query` event fires when a `callback_query` update received from Telegram (https://core.telegram.org/bots/api#update). Bot must be enabled on [inline mode](https://core.telegram.org/bots/api#inline-mode) * * * ### WebHooks From d844ddd15a5fce84d61b27d0d411b576ff18c506 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Mon, 10 Oct 2016 14:30:54 +0300 Subject: [PATCH 2/2] Add accompanying minor fixes and doc updates for PR #163 --- README.hbs | 1 + README.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.hbs b/README.hbs index eea8e82..f385066 100644 --- a/README.hbs +++ b/README.hbs @@ -33,6 +33,7 @@ There are some other examples on [examples](https://github.com/yagop/node-telegr ### Events Every time TelegramBot receives a message, it emits a `message`. Depending on which [message](https://core.telegram.org/bots/api#message) was received, emits an event from this ones: `text`, `audio`, `document`, `photo`, `sticker`, `video`, `voice`, `contact`, `location`, `new_chat_participant`, `left_chat_participant`, `new_chat_title`, `new_chat_photo`, `delete_chat_photo`, `group_chat_created`. Its much better to listen a specific event rather than a `message` in order to stay safe from the content. +TelegramBot emits `callback_query` when receives a [Callback Query](https://core.telegram.org/bots/api#callbackquery). TelegramBot emits `inline_query` when receives an [Inline Query](https://core.telegram.org/bots/api#inlinequery) and `chosen_inline_result` when receives a [ChosenInlineResult](https://core.telegram.org/bots/api#choseninlineresult). Bot must be enabled on [inline mode](https://core.telegram.org/bots/api#inline-mode) * * * diff --git a/README.md b/README.md index 4429932..b4439df 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ There are some other examples on [examples](https://github.com/yagop/node-telegr ### Events Every time TelegramBot receives a message, it emits a `message`. Depending on which [message](https://core.telegram.org/bots/api#message) was received, emits an event from this ones: `text`, `audio`, `document`, `photo`, `sticker`, `video`, `voice`, `contact`, `location`, `new_chat_participant`, `left_chat_participant`, `new_chat_title`, `new_chat_photo`, `delete_chat_photo`, `group_chat_created`. Its much better to listen a specific event rather than a `message` in order to stay safe from the content. -TelegramBot emits `inline_query` when receives an [Inline Query](https://core.telegram.org/bots/api#inlinequery) and `chosen_inline_result` when receives a [ChosenInlineResult](https://core.telegram.org/bots/api#choseninlineresult). Also, `callback_query` event fires when a `callback_query` update received from Telegram (https://core.telegram.org/bots/api#update). Bot must be enabled on [inline mode](https://core.telegram.org/bots/api#inline-mode) +TelegramBot emits `callback_query` when receives a [Callback Query](https://core.telegram.org/bots/api#callbackquery). +TelegramBot emits `inline_query` when receives an [Inline Query](https://core.telegram.org/bots/api#inlinequery) and `chosen_inline_result` when receives a [ChosenInlineResult](https://core.telegram.org/bots/api#choseninlineresult). Bot must be enabled on [inline mode](https://core.telegram.org/bots/api#inline-mode) * * * ### WebHooks