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 |
|
Demian
|
11ccdd09f5
|
layout: add template functions
|
2020-09-26 13:23:06 +03:00 |
|
Demian
|
5e96001289
|
layout: fix templates parsing
|
2020-09-15 19:42:15 +03:00 |
|
Demian
|
dac845e067
|
layout: fix locales name parsing
|
2020-09-15 19:24:29 +03:00 |
|
Demian
|
35e2df77be
|
group: fix recursive handler bug
|
2020-09-15 19:21:02 +03:00 |
|
Demian
|
ce6c47adc8
|
layout: fix nil map
|
2020-09-15 18:36:11 +03:00 |
|
Demian
|
a70d2204db
|
bot: fix root group handling
|
2020-09-15 18:12:43 +03:00 |
|
Demian
|
b291e4fc08
|
layout: should be separated and completely independent
|
2020-09-15 16:49:20 +03:00 |
|
Demian
|
e9dd8a775f
|
layout: parse default locale from settings
|
2020-09-15 13:37:30 +03:00 |
|
Demian
|
3e050a95e5
|
layout: add missed map making
|
2020-09-15 13:31:54 +03:00 |
|
Demian
|
39a9b61833
|
layout: expose locale-related field
|
2020-09-15 13:23:08 +03:00 |
|
Demian
|
a94205252a
|
layout: first implementation
|
2020-09-06 16:56:44 +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
|
a69dd5aa62
|
context: add Args helper function
|
2020-07-25 23:08:51 +03:00 |
|
Demian
|
69af851173
|
tests: update ProcessUpdate test
|
2020-07-25 22:49:38 +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 |
|