Commit Graph

70 Commits

Author SHA1 Message Date
levlam
10f77aee95 Move get_dialog_reply_markup implementation to ReplyMarkup.cpp. 2024-01-11 20:35:02 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
66c6e706ab Replase td_api::shareUserWithBot with td_api::shareUsersWithBot. 2023-12-22 18:47:23 +03:00
levlam
590b3f3c25 Replace td_api::keyboardButtonTypeRequestUser with td_api::keyboardButtonTypeRequestUsers. 2023-12-22 18:06:40 +03:00
levlam
c6ce44815e Update layer to 169. 2023-12-05 12:30:12 +03:00
levlam
542271a1fd Don't save get_id() to a used-once variable before switch. 2023-12-12 23:20:41 +03:00
levlam
4ac5708135 Remove redundant is_valid checks before adding an identifier as dependency. 2023-12-04 22:18:08 +03:00
levlam
a87a41f22d Init True fields for some manually created telegram_api objects. 2023-06-23 17:53:38 +03:00
levlam
d986f0237c Return error if no chat types are allowed. 2023-04-07 16:11:19 +03:00
levlam
2a70fec0b0 Add inlineKeyboardButtonTypeSwitchInline.target_chat. 2023-04-07 14:00:10 +03:00
levlam
a45d2de881 Update layer to 158. 2023-03-21 14:11:43 +03:00
levlam
3dce19ca2b Check that button text isn't empty. 2023-03-02 19:57:11 +03:00
levlam
46fab0cbac Add inlineQueryResultsButtonTypeWebApp. 2023-02-21 21:22:36 +03:00
levlam
ade5a089e9 Implement ReplyMarkup::check_shared_dialog. 2023-01-31 16:40:51 +03:00
levlam
4d70d1e920 Minor improvements. 2023-01-31 13:33:30 +03:00
levlam
0feb0f15ce Improve names of methods and message contents related to sharing user/chat with a bot. 2023-01-23 18:19:35 +03:00
levlam
97cc57a25c Add td_api::sendChosenChat. 2023-01-13 17:16:16 +03:00
levlam
0b54e28467 Add td_api::sendChosenUser. 2023-01-13 17:03:35 +03:00
levlam
1afcc3bcfd Add separate keyboardButtonTypeRequestUser. 2023-01-11 18:31:49 +03:00
levlam
83403d9836 Add keyboardButtonTypeRequestChat. 2023-01-11 16:54:46 +03:00
levlam
050a11ece7 Update layer to 152. 2023-01-06 12:42:16 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
214c8d5e70 Add replyMarkupShowKeyboard.is_persistent. 2022-12-15 14:59:12 +03:00
levlam
8e7d5f5594 Update layer to 151. 2022-12-08 20:58:37 +03:00
levlam
f1eedfaa47 Simplify some usages of optional TL fields. 2022-12-18 22:15:57 +03:00
levlam
ce9175a00b Always use "must be non-empty". 2022-09-10 22:48:34 +03:00
levlam
edaff2eba5 Don't send unneeded user from inlineKeyboardButtonTypeUser for bots. 2022-08-05 16:47:47 +03:00
levlam
03de62b29f Check data validness before initing InlineKeyboardButton. 2022-07-23 13:04:25 +03:00
levlam
1ff1059de8 Fix warning. 2022-07-23 12:59:21 +03:00
levlam
aa635a89c2 Check keyboard buttons data for validness. 2022-06-29 15:57:59 +03:00
levlam
d9d76adb7c Return user_id in inline keyboard as is for local and yet unsent messages. 2022-06-29 11:17:51 +03:00
levlam
e8dccae751 Explicitly pass ContactsManager to
get_input_reply_markup/get_reply_markup_object.
2022-06-28 18:34:53 +03:00
levlam
8a9ea2899b Allow only HTTPS links as login URL. 2022-05-13 14:29:32 +03:00
levlam
bf0caca138 Simplify LinkManager::check_link usage. 2022-05-31 01:41:01 +03:00
levlam
2a0ff37f76 Improve error messages. 2022-04-05 19:07:12 +03:00
levlam
317d267241 Allow HTTP web app links in test DC. 2022-04-05 18:52:22 +03:00
levlam
c1aa1defbb Add td_api::closeWebApp. 2022-03-31 21:45:35 +03:00
levlam
e54fac174a Rename web view to web app. 2022-03-31 16:42:59 +03:00
levlam
ad7e0e2118 Improve method names and documentation. 2022-03-31 12:25:46 +03:00
levlam
ac8e856269 Allow only HTTPS links for web view. 2022-03-28 16:24:56 +03:00
levlam
0bd4c1a778 Check link in td_api::keyboardButtonTypeWebView. 2022-03-28 15:54:23 +03:00
levlam
0ae8401ab5 Add keyboardButtonTypeWebView. 2022-03-27 02:20:26 +03:00
levlam
214e9cf3f2 Add inlineKeyboardButtonTypeWebViewUrl. 2022-03-25 00:32:38 +03:00
levlam
8b16cf7271 Make all fields in Dependencies class private. 2022-03-11 15:31:28 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
b060536ae3 Return Result<...> from get_input_user. 2021-12-16 22:46:03 +03:00
levlam
8f33f96e8c Allow tg:user URLs in inline keyboard buttons. 2021-11-24 13:05:56 +03:00
levlam
ae987f2211 Add inlineKeyboardButtonTypeUser. 2021-11-10 17:14:00 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00
levlam
53f0be4fca Improve error messages. 2021-06-24 22:13:11 +03:00