Commit Graph

46 Commits

Author SHA1 Message Date
Demian
8adfab48e8 tests/layout: assert slices ignoring the order 2022-02-05 21:47:40 +02:00
Demian
c46e31dff6 options: remove InlineKeyboardMarkup type 2022-01-21 23:02:19 +02:00
Demian
444c6f8b66 mod: update module name 2022-01-19 15:31:36 +02:00
Demian
90e7deaa7a layout: wrap Settings for default layout 2021-09-13 10:43:24 +03:00
Demian
34885a0114 layout: implement Int64s config function 2021-08-28 21:46:38 +03:00
Demian
32252d3e8c layout: embed a Config in DefaultLayout 2021-08-28 21:40:45 +03:00
Demian
7981009da5 layout: pass yaml.JSON encoding option to keep whitespaces as a value 2021-08-04 15:45:18 +03:00
Demian
ec2cb655e7 layout: trim slash symbol in commands 2021-08-04 15:11:47 +03:00
Demian
fe3f4aa533 layout: add commands section 2021-08-04 15:10:18 +03:00
Demian
f8ff8053ab layout: fix documentation typos 2021-08-02 17:33:08 +03:00
Demian
d89e904397 layout: wrap Callback function for DefaultLayout 2021-07-29 22:40:27 +03:00
Demian
90abbce6dd layout: avoid nil dereference in ResultLocale 2021-07-27 14:55:20 +03:00
Demian
86e6d40b1b layout: add arguments support in text template function 2021-07-26 22:39:24 +03:00
Demian
2afdf466de layout: move template functions from global scope to the constructor 2021-07-26 18:03:40 +03:00
Demian
c1d4818e35 layout: make locale templates association correct 2021-07-25 14:26:56 +03:00
Demian
40638d1878 layout: rename settings.go file to the parser.go 2021-07-25 14:16:49 +03:00
Demian
5108157783 layout: add inline query results support 2021-07-25 14:15:42 +03:00
Demian
963aaea7bf layout: implement default layout 2021-07-22 20:43:32 +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
9ecc5248c6 layout: implement config array functions 2020-11-21 16:23:28 +02:00
Demian
e27ee26809 layout: add config functions for slices 2020-11-08 22:03:00 +02:00
Demian
cde97c26cf docs: layout 2020-11-04 22:50:09 +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
67283cd275 layout: allow to specify locale manually 2020-10-22 16:14:30 +03:00
Demian
59b2bdc805 layout: fix inline button recognition again 2020-10-13 16:31:08 +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
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
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
d63ce9ce08 layout: simplify markups, add buttons 2020-09-26 18:58:00 +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
ce6c47adc8 layout: fix nil map 2020-09-15 18:36:11 +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