Commit Graph

146 Commits (3834565c356e9b2d94bd8080555aeaf795bbb0ea)

Author SHA1 Message Date
Oleksandr Redko 77aa442a43 Fix typos and grammar issues in comments 2021-11-08 17:29:10 -05:00
Syfaro 0cbcc040dd
Merge branch 'master' into fix-closing-update-channel-add-serverless-method 2021-11-08 15:54:23 -05:00
Syfaro 6aa05225a6 Merge branch 'develop' into files 2021-08-20 16:11:25 -04:00
Syfaro 309d612d70 Merge branch 'master' into develop 2021-08-20 16:08:34 -04:00
Syfaro 816532053b Create interface for file data. 2021-08-20 15:31:52 -04:00
Syfaro 1198abda6d Avoid breaking change with GetMyCommands. 2021-08-20 01:27:42 -04:00
Syfaro 66dc9e8246 Updates for Bot API 5.3. 2021-06-27 15:15:09 -04:00
Syfaro 05db49c9e3 Merge branch 'develop' into multiple-uploads 2021-03-10 12:33:02 -05:00
TJ Horner 3b5c8a96d7 Add allowed_updates to GetUpdates 2021-03-09 15:52:22 -05:00
farit2000 18031c85e5 Fix bug with update channel closing, add ListenForWebhookRespReqFormat method, for using in serverless apps, add example to README.md, add exaple pf a published bot on AWS Lambda 2020-11-27 11:24:41 +03:00
Erik Pellizzon 7d4ae712ae
Added empty string error return in docs 2020-11-06 22:07:29 +01:00
Syfaro 4064ced03f Add some tests, fix copyMessage. 2020-11-06 12:36:00 -05:00
Erik Pellizzon 41e8597816
Remove function from BotApi struct
Co-authored-by: Syfaro <syfaro@huefox.com>
2020-11-06 11:25:32 +01:00
Syfaro 366879b110 Merge branch 'master' into develop 2020-11-05 23:29:48 -05:00
Erik Pellizzon 85ecb11675
Added EscapeText function 2020-10-26 17:41:02 +01:00
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
Syfaro f2cd95670d Update some forgotten items. 2020-07-26 16:06:22 -05:00
Syfaro 8d14bd7a56 Make MediaGroupConfig Chattable and Fileable. 2020-07-26 14:40:12 -05:00
Syfaro c6bf64c67d Replace panic with CloseWithError. 2020-07-25 23:36:31 -05:00
Syfaro ce4fc988c9 Add support for uploading multiple files. 2020-07-25 19:29:40 -05:00
gropher ca07bb78e4 Added HandleUpdate method for serverless deploy
(cherry picked from commit d4b2e3c213)
2020-07-21 13:42:55 -05: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 da98517cd2
Merge pull request #210 from overplumbum/develop
fix add sticker to stickerset uploads by url and fileId
2020-07-21 01:48:35 -05: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
Syfaro 75e27e1380 Updates for Bot API 4.7. 2020-03-30 15:35:53 -05: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
CNA-Bld 4a76ae1bfb Create helper function WriteToHTTPResponse 2020-03-02 22:28:02 +08:00
Tarcisio Gruppi 706e70933d
Close updates chan on stop 2020-02-22 19:13:34 -03:00
zhuharev b40fac9202 Resolve develop and master conflicts 2020-02-15 16:08:58 +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
Syfaro db88019230 Add support for Polls and other API 4.2 updates. 2019-04-14 14:46:45 -05:00