Commit Graph

647 Commits

Author SHA1 Message Date
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
Demian
a2ad0d803c layout: extend config implementation 2020-10-08 22:37:57 +03:00
Demian
6005ff95b1 layout: implement typed ChatID function 2020-10-08 22:21:07 +03:00
Demian
91f4c3498e util: fix possible nil dereference in debug 2020-10-08 20:11:35 +03:00
Demian
2eadd32991 middleware: implement first restrict examples 2020-10-01 20:32:48 +03:00
Demian
90fad0b031 middleware: fix group handling logic 2020-10-01 17:36:50 +03:00
Demian
09f2572e08 layout: dispose used context 2020-10-01 16:23:44 +03:00
Demian
708093dfbc layout: return nil for non existing button 2020-09-26 19:04:45 +03:00
Demian
b10f986ba2 context: fix message selecting for callbacks 2020-09-26 18:58:00 +03:00
Demian
d63ce9ce08 layout: simplify markups, add buttons 2020-09-26 18:58:00 +03:00
Demian
12a486fda8 .travis: update 2020-09-26 18:58:00 +03:00
Demian
551df7ebce test: assert to require for errors 2020-09-26 18:58:00 +03:00
Demian
7a47b1a206 bump go version to 1.13 2020-09-26 18:50:58 +03:00
Demian
a328719293 bot: fill animation from the document if it's nil 2020-09-26 18:50:58 +03:00
Ian Patrick Badtrousers
4a49efc1bb admin: removed omitempty from Rights 2020-09-26 18:50:58 +03:00
Demian
c4f58d405b layout: expose locale functions 2020-09-26 14:03:01 +03:00