Commit Graph

106 Commits (e539815a4954166c029361f28e3fd0be87a00110)

Author SHA1 Message Date
bcmk e7590a0638 getMyCommands implemented 2020-09-27 02:10:43 +04:00
bcmk 4a2c8c4547 setMyCommands implemented 2020-09-27 02:08:56 +04:00
TJ Horner fb8759e91d
Merge pull request #282 from dmitriy-kharchenko/master
Added validation and error checking for incoming updates in ListenFor…
2020-07-29 11:42:08 -04:00
Dmitriy Kharchenko b6575a2934
Added stream processing of input JSON
Co-authored-by: TJ Horner <me@tjhorner.com>
2020-07-29 09:51:11 +03:00
Dmitriy Kharchenko 20b57111fc Merge branch 'master' of https://github.com/go-telegram-bot-api/telegram-bot-api into wehook-validation 2020-07-21 12:06:24 +03:00
Syfaro 4b372faeeb
Make returned error consistent. 2020-07-21 03:56:23 -05:00
Syfaro fe3a0a8654
Merge pull request #300 from yi-jiayu/upload-file-response-parameters
Include ResponseParameters in UploadFile error
2020-07-21 03:14:03 -05:00
mehanizm f11e1caecf feat: add sendDice configs
Add sendDice config to use in Send method
as a Chattable interface.
Add NewDice and NewDiceWithEmoji helpers
Add tests

https://core.telegram.org/bots/api#senddice
2020-07-21 10:25:30 +03:00
Syfaro 2476225ecc
Merge pull request #346 from Kurets/master
Fixes error parameter name for AnswerPreCheckoutQuery
2020-07-21 01:32:48 -05:00
Syfaro 8717c40e7c
Merge pull request #270 from Gropher/master
Added HandleUpdate method for serverless deploy. Fixes #260
2020-07-20 13:41:14 -05:00
Dmytro Kurest e55e8bc55a Fixes error parameter name for AnswerPreCheckoutQuery 2020-06-30 10:42:37 +03:00
Andrii Soluk 6792fab6bb
feat: Replaces *http.Client with an interface
Signed-off-by: Andrii Soluk <isoluchok@gmail.com>
2020-05-24 12:54:43 +03:00
Kirill Zhuharev b401ef076d
Merge pull request #310 from txgruppi/close-updates-chan-on-stop
Close updates chan on stop
2020-03-19 07:23:49 +03:00
Kirill Zhuharev afa296aeac
Merge pull request #275 from NemoD503/error_pointer
Return pointer to error.
2020-03-19 07:22:28 +03:00
Kirill Zhuharev cf3ea3f80d
Merge pull request #304 from blasphemy/getstickerset2
add getStickerSet call
2020-03-19 07:14:48 +03:00
Kirill Zhuharev 2d75cf8a3f
Merge pull request #247 from unstppbl/pr/deleteWebhook
closes #246
2020-03-19 07:13:15 +03:00
Adelya b5d42143e7 Ability to create BotAPI instance directly with new API endpoint 2020-03-03 17:00:42 +03:00
Tarcisio Gruppi 706e70933d
Close updates chan on stop 2020-02-22 19:13:34 -03:00
Daniel Leining f44d515f71 add getStickerSet call 2020-02-01 01:46:24 -05:00
Jiayu Yi e0d9306d8b Include ResponseParameters in UploadFile error
This makes UploadFile behave more similarly to MakeRequest when the
response is not ok.
2020-01-13 22:09:05 +08:00
Dmitriy Kharchenko 7629a37f77 Added validation and error checking for incoming updates in ListenForWebhook 2019-12-10 08:05:12 +03:00
NemoD503 a6b4ce46a6 return pointer to error 2019-10-20 22:47:21 +03:00
gropher d4b2e3c213 Added HandleUpdate method for serverless deploy 2019-09-18 03:34:37 +03:00
unstppbl 72a0e2d808 closes #246 2019-07-03 17:59:56 -07:00
zhuharev 8d345836d6 Allow to change API endpoint for bot 2019-05-24 13:14:48 +03:00
bcmk 016d6acdf3 Passing error code 2019-03-01 20:57:23 +04:00
bcmk ab8d5487da Closing update body 2018-12-10 18:08:47 +04:00
Syfaro b60db1d2e1 Revert "Remove a broken check for GetUpdatesChan."
This was not properly tested and results in the bot looping.

This reverts commit 5f38203a15.
2018-10-08 13:58:50 -05:00
Syfaro 444e8e261f
Merge pull request #154 from Arman92/patch-1
added StopReceivingUpdates to stop updates routine
2018-10-08 02:08:42 -05:00
Syfaro 5f38203a15 Remove a broken check for GetUpdatesChan. 2018-10-08 01:58:33 -05:00
Yan Mihailov a1b3e41878 added custom logger and SetLogger func 2018-08-07 00:15:37 +03:00
Kirill Zhuharev 0e0af0c480 fix #159 2018-03-28 16:10:29 +03:00
Syfaro 38681a48d1
Merge pull request #153 from behrang/master
Add response parameters to error messages
2018-03-26 11:19:46 -05:00
Arman 6205cea402
added StopReceivingUpdates to stop updates routine
There was no way to stop the bot from fetching updates, Added StopReceivingUpdates() so we can stop updates when we are done with bot.
2018-03-10 01:52:21 +03:30
Oleksandr Savchuk a36af7a672 add deleteChatPhoto method 2018-03-05 17:12:56 +02:00
Oleksandr Savchuk 57be988011 add setChatPhoto method 2018-03-05 17:05:32 +02:00
Behrang Noruzi Niya 04f51c3251 Add response parameters to error messages 2018-03-04 14:40:17 +03:30
Oleksandr Savchuk 6e69f99d11 add setChatTitle and setChatDescription methods 2018-03-03 20:20:03 +02:00
zhuharev 2022d04b94
fix tests, linter errors and fmt 2017-11-09 21:51:50 +03:00
Zaur Abdulgalimov bd1aa7e6ef User:IsBot & RestrictChatMember:UntilDate 2017-11-09 18:41:22 +03:00
zhuharev e6191af679
add doc message 2017-11-07 05:17:06 +03:00
zhuharev 6b5102fab5
fix debug printing 2017-10-31 02:34:34 +03:00
zhuharev 3cfc52c9c2
print full response when debug 2017-10-30 00:03:48 +03:00
Lord-Protector b24a37443a Add PinChatMessage and UnpinChatMessage methods 2017-08-05 12:29:06 +03:00
Mikhail Markov def5c3f6c9 Add exportChatInviteLink method 2017-07-17 20:48:51 +03:00
MrYadro 4e059b5fbf
implement new methods for ChatMember 2017-07-01 11:34:09 +07:00
Mohamad Jahani 12f3478326 feat(bot): implement unban chat member for channels 2017-06-18 21:34:17 +04:30
Mohamad Jahani bdb0f1f4c5 feat(bot): implement deleteMessage method 2017-06-08 14:02:05 +04:30
MrYadro 41814af2a0
Fixes and comments 2017-06-03 13:59:40 +07:00
MrYadro 42d132b90a
Payments API 2017-06-03 03:18:42 +07:00