Commit Graph

612 Commits

Author SHA1 Message Date
Demian
9be6c9e313 mod: update 2021-07-21 14:51:43 +03:00
Ian P Badtrousers
5a64e9fc62 Bwahahahahaha 2021-07-15 05:12:33 +03:00
Demian
e9781d5a63 context: implement helper EditOrSend and EditOrReply functions 2021-07-08 14:08:27 +03:00
Demian
061d8ab4ba inline: enable ability to use default parse mode 2021-07-07 16:00:51 +03:00
Demian
c97641b811 layout: implement Locales function 2021-07-07 13:28:41 +03:00
Demian
91a85c9b5a layout: replace json tags with yaml ones 2021-07-07 13:17:57 +03:00
Demian
965bc10466 layout: add shorter data alias for callback_data 2021-07-07 13:16:38 +03:00
Demian
55ffac1c33 context: clarify 2021-07-07 12:52:28 +03:00
Ian P Badtrousers
7e3a68249a context: args used to return [""] of length 1 2021-07-05 14:25:29 +03:00
demget
83bd8dd89d
Merge pull request #375 from lcd1232/get_set
Support get/set
2021-07-04 02:16:35 +03:00
Demian
55a27add1d context: return command payload on Data 2021-06-21 14:23:41 +03:00
Demian
9c67c31592 bot: make ChatMemberOf accept Recipient interface 2021-06-20 19:00:31 +03:00
Demian
f624062eec context: use Chat recipient first, then Sender one 2021-06-20 16:30:45 +03:00
lcd1232
0f19fd16df Update test 2021-03-12 11:04:48 +03:00
lcd1232
82f4e787ef Support get/set 2021-03-12 11:03:27 +03:00
Demian
daebf9f55d readme: add telegram discuss group 2021-01-23 15:32:01 +02:00
Demian
9ecc5248c6 layout: implement config array functions 2020-11-21 16:23:28 +02:00
Demian
cdad4e4816 options: implement markup Split 2020-11-16 01:42:55 +02:00
Demian
e27ee26809 layout: add config functions for slices 2020-11-08 22:03:00 +02:00
Demian
ca801f2f1c options: fix nil reply markup handling 2020-11-08 01:45:58 +02:00
Demian
6d548640f2 options: add RemoveKeyboard option 2020-11-08 01:26:54 +02:00
Demian
9063018d2b context: rename SenderOrChat to Recipient, change Sender return type to User 2020-11-07 19:51:16 +02:00
Demian
cde97c26cf docs: layout 2020-11-04 22:50:09 +02:00
Demian
684692e890 telebot: add goal and slot dices 2020-11-04 19:00:20 +02:00
Demian
e467d6286c errors: update and implement flood error 2020-11-03 22:18:58 +02:00
renanzxc
8fe81bb3bf Export row type 2020-11-03 22:18:07 +02:00
profawk
66f939ca14 Fix inlinebutton With func
the InlineButton With func returned a new button with it's url property mangled (t.Text instead of t.URL)
this caused telegram to respoind with 400
2020-11-03 22:18:07 +02:00
Demian
41c95795c0 chat: return username in Recipient for channels 2020-11-03 21:19:19 +02:00
Demian
309b5be317 layout: separate buttons and callbacks 2020-11-02 16:49:50 +02:00
Demian
0b46db3041 layout: pass functions to the ButtonLocale template 2020-10-29 20:46:42 +02:00
Demian
e5b018fc4b layout: implement ButtonLocale function 2020-10-29 20:28:34 +02:00
Demian
9e23343684 context: expose SenderOrChat function 2020-10-22 19:29:12 +03:00
Demian
fe1015dd7a context: add additional checks for recipient 2020-10-22 18:28:15 +03:00
Demian
cba1303e69 context: expose native constructor 2020-10-22 16:22:41 +03:00
Demian
67283cd275 layout: allow to specify locale manually 2020-10-22 16:14:30 +03:00
Demian
9f08ef94de telebot: remove ErrSkip
There is no need in this error, as we can skip or abort the execution
by simply returning a nil, instead of calling the next context handler.
2020-10-20 13:30:55 +03:00
Demian
1755696785 middleware/logger: trim callback data delimiter 2020-10-20 13:29:07 +03:00
Demian
8805f248e3 tests: context Text is not for queries 2020-10-13 16:33:00 +03:00
Demian
59b2bdc805 layout: fix inline button recognition again 2020-10-13 16:31:08 +03:00
Demian
541cbd7e1e bot: add callback unique field 2020-10-12 21:01:48 +03:00
Demian
4e02fbfc4f middleware/logger: use data as text for callbacks 2020-10-12 20:45:50 +03:00
Demian
29b8f9343c context: implement Data function 2020-10-12 18:46:45 +03:00
Demian
291010edb2 context: allow Edit only for callbacks 2020-10-12 18:16:13 +03:00
Demian
95a99609b1 revert "context: Edit cannot edit the current message"
Context-dependent Edit is needed to edit the callback messages at least.

This reverts commit 57be5879bc.
2020-10-12 17:39:40 +03:00
Demian
2f996c5a81 layout: log errors 2020-10-11 16:35:35 +03:00
Demian
8518b36b32 layout: fix inline button recognition 2020-10-11 15:29:50 +03:00
Demian
0904e2ffec context: implement Chat function 2020-10-10 13:44:39 +03:00
Demian
3e14fed6ff middleware: implement logrus logger 2020-10-10 13:42:11 +03:00
Demian
57be5879bc context: Edit cannot edit the current message 2020-10-09 14:07:00 +03:00
Demian
cf5edf4042 context: implement the opposite to Forward 2020-10-08 22:46:26 +03:00