I ( @Yago_Perez ) have the Telegram account banned for a week, so if you want to ask me something, send me 10 messages. Then I will be able to answer you. 😝
Forwarded from Yago
I wasn't able to get a chosen_inline_result after a user choose an Inline Result on the next getUpdates call
Forwarded from Bot Support
Hi Yagop, you're correct, it was accidentally documented a little too early.
If you were trying to get chosen_inline_result event it was impossible. It wasn't implemented by Telegram despite it was documented.
Forwarded from BotNews
You can now build accurate ratings and charts for content shared via your inline bot.
Simply send
To give just one example, you could use this data to return the top-10 most popular results when a user first types your bot's username in the input field (i.e., as an answer to an empty request).
More info here:
https://core.telegram.org/bots/inline#collecting-feedback
This update:
https://core.telegram.org/bots/api#recent-changes
Simply send
/setinlinefeedback to @BotFather to receive updates on which of the results provided by your bot got chosen by its users.To give just one example, you could use this data to return the top-10 most popular results when a user first types your bot's username in the input field (i.e., as an answer to an empty request).
More info here:
https://core.telegram.org/bots/inline#collecting-feedback
This update:
https://core.telegram.org/bots/api#recent-changes
core.telegram.org
Inline Bots
Inline bots: A new way to interact with bots and send bot-generated content to any chat, group or channel.
If you are having huge memory usage (more than 200MB) please upgrade to NodeJS >= v4
A small example for using
onReplyToMessage is provided: https://github.com/yagop/node-telegram-bot-api/blob/master/examples/replyToMessage.jsMany changes were added:
Support for Bots 2.0:
- kickChatMember
- unbanChatMember
- answerCallbackQuery
- editMessageText
- editMessageCaption
- editMessageReplyMarkup
- callback_query message
Handle Error 409; requesting polling when a WebHook is set
Filename and content type can by specified sendDocument
After long time, new version (
v0.24.0 ) is released. Many new features are introduced such as game API, 'edited_message' event and leaveChat, getChatAdministrators, getChatMembersCount, getChatMember, sendVenue requests.Especial thanks to @GochoMugo who I gave contributor rights and merged many PR! 👍
New release,
1. Supports the API v2.3 updates (by @kamikazechaser)
2. Proxy extra request options (by @tarmolov)
3. Fix request performance issue (by @preco21)
4. Support
5. Support
6. Added
7. Support
8. Fix typos (by oflisback)
Thanks for your continued interest and support.
Happy new year!
v0.25.0. The changes include:1. Supports the API v2.3 updates (by @kamikazechaser)
2. Proxy extra request options (by @tarmolov)
3. Fix request performance issue (by @preco21)
4. Support
sendVenue method (by Tketa)5. Support
sendContact method (by @GochoMugo)6. Added
onlyFirstMatch option (by @GingerPlusPlus)7. Support
getGameHighScores method (by @jishnu7)8. Fix typos (by oflisback)
Thanks for your continued interest and support.
Happy new year!
New release, v0.26.0:
Added:
1. Add TelegramBot constructor options:
* options.https
* options.baseApiUrl
* options.filepath
2. Add methods:
* TelegramBot#stopPolling()
* TelegramBot#isPolling()
* TelegramBot#openWebHook()
* TelegramBot#closeWebHook()
* TelegramBot#hasOpenWebHook()
* TelegramBot#deleteWebHook()
* TelegramBot#getWebHookInfo()
Changed:
1. Use POST requests by default
2. Ensure all relevant methods return Promises
3. Document auto-deletion of webhook during polling
4. Deprecate support for Node.js v0.12
5. Fix consistency of methods signatures
6. Rename TelegramBot#initPolling() to TelegramBot#startPolling()
* Deprecate TelegramBot#initPolling()
Fixed:
1. Handle error during formatting formData
2. Fix ES6 syntax
Credits/Blames: Unless explicitly stated otherwise, above work was done by @GochoMugo. Thanks to all who have contributed in code and discussion in advancing this project.
We hope you find the library more easier and stable to work with. Happy coding!
Added:
1. Add TelegramBot constructor options:
* options.https
* options.baseApiUrl
* options.filepath
2. Add methods:
* TelegramBot#stopPolling()
* TelegramBot#isPolling()
* TelegramBot#openWebHook()
* TelegramBot#closeWebHook()
* TelegramBot#hasOpenWebHook()
* TelegramBot#deleteWebHook()
* TelegramBot#getWebHookInfo()
Changed:
1. Use POST requests by default
2. Ensure all relevant methods return Promises
3. Document auto-deletion of webhook during polling
4. Deprecate support for Node.js v0.12
5. Fix consistency of methods signatures
6. Rename TelegramBot#initPolling() to TelegramBot#startPolling()
* Deprecate TelegramBot#initPolling()
Fixed:
1. Handle error during formatting formData
2. Fix ES6 syntax
Credits/Blames: Unless explicitly stated otherwise, above work was done by @GochoMugo. Thanks to all who have contributed in code and discussion in advancing this project.
We hope you find the library more easier and stable to work with. Happy coding!
New Release, v0.27.0:
Added:
1. Add constructor options:
* (#243) options.polling.params (by @GochoMugo, requested-by @sidelux)
2. Add methods:
* (#74) *TelegramBot#removeReplyListener()* (by @githugger)
3. (#283) Add proper error handling (by @GochoMugo)
4. (#272) Add health-check endpoint (by @mironov)
* options.webHook.healthEndpoint
5. (#152) Add test for TelegramBot#sendDocument() using 'fileOpts'
param (by @evolun)
6. Document options.webHook.host (by @GochoMugo)
7. (#264) Add Bot API version to README (by @kamikazechaser)
8. Add examples:
- (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
- (#274) WebHook on Zeit Now (by @Ferrari)
Changed:
1. (#147) Use *String#indexOf()*, instead of *RegExp#test()*, to
find token in webhook request (by @AVVS)
Fixed:
* Fix bug:
- (#275, #280) fix es6 syntax error on Node.js v4.x (by @crazyabdul)
- (#276) promise.warning from request-promise (by @GochoMugo,
reported-by @preco21)
- (#281) fix handling error during polling (by @GochoMugo,
reported-by @dimawebmaker)
- (#284) fix error during deletion of already-set webhook, during
polling (by @GochoMugo, reported-by @dcparga)
2. Fix links in documentation (by @Ni2c2k)
An Early Happy Valentine's Day ❤️
Added:
1. Add constructor options:
* (#243) options.polling.params (by @GochoMugo, requested-by @sidelux)
2. Add methods:
* (#74) *TelegramBot#removeReplyListener()* (by @githugger)
3. (#283) Add proper error handling (by @GochoMugo)
4. (#272) Add health-check endpoint (by @mironov)
* options.webHook.healthEndpoint
5. (#152) Add test for TelegramBot#sendDocument() using 'fileOpts'
param (by @evolun)
6. Document options.webHook.host (by @GochoMugo)
7. (#264) Add Bot API version to README (by @kamikazechaser)
8. Add examples:
- (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
- (#274) WebHook on Zeit Now (by @Ferrari)
Changed:
1. (#147) Use *String#indexOf()*, instead of *RegExp#test()*, to
find token in webhook request (by @AVVS)
Fixed:
* Fix bug:
- (#275, #280) fix es6 syntax error on Node.js v4.x (by @crazyabdul)
- (#276) promise.warning from request-promise (by @GochoMugo,
reported-by @preco21)
- (#281) fix handling error during polling (by @GochoMugo,
reported-by @dimawebmaker)
- (#284) fix error during deletion of already-set webhook, during
polling (by @GochoMugo, reported-by @dcparga)
2. Fix links in documentation (by @Ni2c2k)
An Early Happy Valentine's Day ❤️