Commit Graph

41 Commits

Author SHA1 Message Date
Akionka
eb290fd947
Update layout.go 2023-05-12 16:31:53 +03:00
Demian
4c17ca7dc7 layout: fix text template func inside the inline results 2022-11-14 12:58:36 +02:00
Demian
7065335e1d layout: add new reply flag for the buttons 2022-10-09 20:08:33 +03:00
demget
c7959ca48c
Merge pull request #550 from Googlom/v3-feature-commands-locale
Localized bot commands desctiptions
2022-10-04 22:41:14 +03:00
demget
d4c80e6239
Merge pull request #546 from Googlom/v3-fix-layout-button
fix the order in which template Funcs are applied
2022-10-03 15:31:24 +03:00
Demian
30fcc2b9f0 layout: migrate from cast to the viper 2022-10-02 22:11:28 +03:00
googlom
83dd959e75 implement CommandsLocale 2022-08-30 16:06:52 +05:00
googlom
9f39ea137a fix the order in which template Funcs are applied 2022-08-22 12:41:14 +05:00
hararudoka
a4d61d0eb4 fix a typo in layout.go 2022-03-15 19:51:23 +03: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
32252d3e8c layout: embed a Config in DefaultLayout 2021-08-28 21:40:45 +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
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
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
2f996c5a81 layout: log errors 2020-10-11 16:35:35 +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
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
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
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