Commit Graph

257 Commits

Author SHA1 Message Date
demget
e03da5dc42 Merge pull request #382 from omar-polo/v2
implement my_chat_member and chat_member
2021-07-25 15:16:32 +03:00
Ian P Badtrousers
8261689cda Merge pull request #377 from omar-polo/v2
implements voice chat service messages
2021-07-25 15:12:19 +03:00
demget
1b57dbc404 Merge pull request #371 from metalmatze/test-offline
Expose offline settings for Bot
2021-07-25 14:57:05 +03:00
demget
f29096837c Merge pull request #364 from rusq/v2
Enable handling callbacks with Unique contaning "-"
2021-07-25 14:56:19 +03:00
Hung-I Wang
6de60f7d68 Fix a typo in the comment of SetGroupDescription 2021-07-25 14:42:50 +03:00
Demian
061d8ab4ba inline: enable ability to use default parse mode 2021-07-07 16:00:51 +03:00
Demian
9c67c31592 bot: make ChatMemberOf accept Recipient interface 2021-06-20 19:00:31 +03:00
Demian
cba1303e69 context: expose native constructor 2020-10-22 16:22:41 +03:00
Demian
541cbd7e1e bot: add callback unique field 2020-10-12 21:01:48 +03:00
Demian
3e14fed6ff middleware: implement logrus logger 2020-10-10 13:42:11 +03:00
Demian
90fad0b031 middleware: fix group handling logic 2020-10-01 17:36:50 +03:00
Demian
a70d2204db bot: fix root group handling 2020-09-15 18:12:43 +03:00
Demian
1076cdcfa6 bot: allow default poller 2020-08-06 22:14:16 +03:00
Demian
b2ce91acc7 bot: add global-scope Use function 2020-08-06 22:13:11 +03:00
Demian
bc180b4a47 telebot: tele is our new alias 2020-07-26 00:08:03 +03:00
Demian
4062f24361 context: pass context to the OnError middleware 2020-07-26 00:07:58 +03:00
Demian
f1015d1754 middleware: basic implementation and groups 2020-07-25 23:55:01 +03:00
Demian
5a480bd291 Merge branch 'v2' into v3 2020-07-25 22:45:22 +03:00
Demian
5f6792d860 context: adapt handlers 2020-07-25 22:44:50 +03:00
PiggyMoe
2b4e7eeb65
util: fix param type for embedRights 2020-06-24 09:07:53 +08:00
Demian
5a1a187e87 telebot: clarify and fix all naming issues 2020-06-19 23:36:43 +03:00
Demian
2f11c43bd9 telebot: prettify docs 2020-06-19 22:51:01 +03:00
Demian
e1811e100a tests: implement more 2020-06-09 23:28:28 +03:00
Demian
09b2f90c72 api: prettify verbose mode output 2020-06-09 22:26:28 +03:00
demget
29af30f5ee
Merge branch 'develop' into verbose-mode 2020-06-09 19:09:23 +03:00
Demian
98a898f4c7 bot: add default parse mode feature 2020-06-07 23:12:49 +03:00
Demian
d63df8ce0e bot: extend Edit function 2020-06-07 21:41:13 +03:00
Demian
c271d16dfc bot: handle True response results 2020-05-31 19:11:42 +03:00
Demian
3e947d3392 telebot: small doc fixes 2020-05-31 16:18:33 +03:00
danch
092eb11418 bot: add verbose mode 2020-05-31 15:00:30 +03:00
Demian
0b3082a091 options: complete keyboard constructors 2020-05-21 13:38:06 +03:00
Demian
c626aaabd5 bot: accept Editable in Forward function 2020-05-21 12:14:45 +03:00
Demian
f82c0ec609 telebot: fix linter inspection problems 2020-05-21 12:02:35 +03:00
Demian
7a1d59c7d9 payments: SuccessfulPayment and minor changes 2020-05-21 11:48:24 +03:00
Ian P Badtrousers
1a558989dc
Merge pull request #292 from godande/develop
Introduced keyboard constructors
2020-05-20 22:52:25 +02:00
Demian
16e74b8025 payments: complete shipping API 2020-05-20 23:40:42 +03:00
dande
ef00a90aef options: go fmt 2020-05-13 19:55:06 +03:00
dande
49a392391a keyboards: added constructors 2020-05-13 18:21:07 +03:00
Demian
eb74dcb35a bot: move stickers functions to stickers.go 2020-05-06 23:23:06 +03:00
Nikita Bikmaev
ef4247381a stickers: implement setStickerSetThumb method 2020-05-06 23:20:38 +03:00
Nikita Bikmaev
5af4f9c52c stickers: update functions according to the library's standards 2020-05-06 23:20:38 +03:00
Demian
7324790593 bot: some clean-ups and refactoring
1. empty map initialization replaced with make keyword;
 2. removed redundant extractOk() calls, after b.Raw.
2020-05-06 20:20:01 +03:00
Demian
1533291206 games: complete Games API 2020-05-05 23:40:48 +03:00
demget
319196b847
Merge pull request #280 from guest6379/pr_onanimation
Add OnAnimation endpoint
2020-05-03 19:32:02 +03:00
Demian
f9f9b69ccf Merge branch 'poller-fix' into develop 2020-05-02 16:38:43 +03:00
Demian
31048be20c bot: close stop channels only by their owners 2020-05-01 22:23:46 +03:00
Orivej Desh
953bcdf552 bot: remove closures around runHandler 2020-05-01 18:38:54 +00:00
Orivej Desh
95769df144 tests: add offline mode 2020-05-01 18:38:54 +00:00
me@linux
1b307ee259 Add OnAnimation endpoint 2020-04-29 21:02:52 +08:00
Orivej Desh
f95090faf1 bot: expose ProcessUpdate and add Synchronous handlers mode
Bot.ProcessUpdate in synchronous mode can be used as an AWS Lambda function.
2020-04-28 15:35:44 +00:00
Demian
c14c51a668 bot: fix long poller stopping logic 2020-04-26 21:29:25 +03:00
Demian
5c1986f5b5 telebot: a lot of refactor and clean-ups 2020-04-26 18:19:49 +03:00
Demian
e786ae7401 bot: implement stopPoll method 2020-04-26 17:05:21 +03:00
Rocky Badland
b15f9a45d2 bot: fix misspell in deleteChatPhoto 2020-04-26 16:03:06 +03:00
Demian
32532699c5 bot: implement bot commands methods 2020-04-26 15:55:04 +03:00
Demian
f3f71c27e0 bot: implement setChatPermissions method 2020-04-26 14:47:08 +03:00
dande
9268c6dff7 dice: added constants 2020-04-25 15:59:53 +03:00
dande
3915e8596b dice: fixed dice handling 2020-04-25 15:31:16 +03:00
Demian
299838450e tests: implement b.EditReplyMarkup() function test 2020-04-23 21:56:27 +03:00
Demian
4e2f28c4f3 bot: implement editMessageLiveLocation, update some documentation 2020-04-16 18:56:47 +03:00
Demian
1654a203ea bot: check recipient for nil to avoid panics 2020-04-16 17:57:16 +03:00
Demian
784432503e tests: implement b.Send() function test 2020-04-16 17:52:15 +03:00
unknown
51a26d93ce Refactor incomingUpdate function 2020-04-06 22:27:58 +03:00
unknown
e5789a08bb Refactor unexported code 2020-04-06 16:04:25 +03:00
unknown
4cab32f46e Fire OnPinned for channel post (closes #244) 2020-04-06 14:22:01 +03:00
unknown
fcff7569ac Implement bot Handle and Start functions tests 2020-04-06 12:57:18 +03:00
unknown
32de86819c Update Handle documentation 2020-04-06 11:40:31 +03:00
unknown
ce43c6a8a2 Refactor code, fix code style issues 2020-04-05 20:23:51 +03:00
Nikita Bikmaev
66e7021870 Move a code to sendable.go and update the README.md 2020-03-31 00:04:16 +03:00
Nikita Bikmaev
4b74a0ebcc Fix documentation 2020-03-30 19:37:41 +03:00
Nikita Bikmaev
69f0836940 Implement sendPoll method 2020-03-30 19:21:06 +03:00
Ian Patrick Badtrousers
3458aeb2e7 Revert "MarkdownV2 as default, use MarkdownLegacy for old-fashioned MD."
This reverts commit 12299becfa.
2020-03-29 14:59:27 +02:00
Ian Patrick Badtrousers
12299becfa MarkdownV2 as default, use MarkdownLegacy for old-fashioned MD. 2020-03-29 01:49:17 +01:00
Mikhail Borovikov
9852df39ae Add support parse_mode for albums photo 2020-03-01 03:12:13 +03:00
Tobias Tangemann
b6c3367fed Fix OnMigration handler haven from=0 (#245)
Fixes tucnak/telebot/issues#187
2020-01-20 19:55:35 +03:00
Viktor Oreshkin
baa616bc00 EditMedia: Fix possible thumb attach name conflict 2019-12-26 02:47:05 +03:00
Viktor Oreshkin
ddbfc934ff rename FileJson to FileJSON to make linter happy 2019-12-26 02:42:52 +03:00
Viktor Oreshkin
f4d7467b6e Rewrite IfElseChain to switch 2019-12-26 02:42:20 +03:00
Viktor Oreshkin
24589f3665 remove unused function (*Bot).handleCommand 2019-12-26 02:20:59 +03:00
Viktor Oreshkin
a67e593e35 GetFile: use b.client, check status code 2019-12-26 02:17:34 +03:00
Viktor Oreshkin
6cf54c1557 Improve some loops (use copy, style fix) 2019-12-26 02:04:23 +03:00
Viktor Oreshkin
a770d6d951 Fix typos and misspells 2019-12-26 01:55:51 +03:00
Viktor Oreshkin
10b553411d Add options to EditCaption (incl ParseMode) (#230) 2019-12-26 01:44:01 +03:00
demiangetman
a855bcb241 Fix possible EditMedia sendOpts nil dereference 2019-12-26 01:40:46 +03:00
demiangetman
921282a488 Add ParseMode option support to EditMedia 2019-12-26 01:40:46 +03:00
Viktor Oreshkin
ca2149b44f Handle audio thumbnail in EditMedia 2019-12-26 01:21:11 +03:00
demiangetman
53bfa49b78 Fill callback inline message on update 2019-12-08 11:57:09 +03:00
demiangetman
97589a3d9e Add options to EditCaption 2019-11-03 16:17:46 +03:00
demiangetman
366e68b072 Implement EditReplyMarkup 2019-09-30 18:24:59 +03:00
Arseny Mitin
83aacd12ee refactor: avoid using fmt.Sprintf for performance 2019-09-17 10:05:21 +03:00
evgendn
240965f18d Add stickers methods 2019-07-29 23:04:52 +05:00
Ian Byrd
9b714b274c reducing excessive deffered calls 2019-03-29 16:25:48 +02:00
Ian Byrd
42933c1912 small fixes, go.{mod,sum} 2019-03-29 16:25:48 +02:00
Ian Byrd
85ee746b3c
Merge pull request #194 from 23rd/patch-1-edit-media
Added support for editMessageMedia.
2019-03-26 15:22:23 +02:00
robatioor
5601dd0354 add method GetFile and refactor code 2019-03-03 08:44:14 +03:30
23rd
c7451550a3 Added support for editMessageMedia.
- Fixes #184.
2019-02-20 09:11:32 +03:00
Ian Byrd
7eeea8f32a
Payment API minimal implementation. 2019-01-28 02:42:41 +02:00
Anton Kucherov
538b671e6a fix #173 add custom Telegram api url 2018-12-13 01:45:03 +03:00
Ian Byrd
2adea7c8be
Merge pull request #163 from stek29/filereader
Add File creation from io.Reader (fix #137)
2018-10-11 14:50:05 +03:00
Viktor Oreshkin
ec2090d300 Dont panic in Bot.Send, just return error 2018-10-11 14:40:16 +03:00