Commit Graph

7672 Commits

Author SHA1 Message Date
levlam
66dfbee537 Save attach menu bots between restarts. 2022-03-25 17:44:20 +03:00
levlam
ec802b1b57 Add updateAttachMenuBots. 2022-03-25 16:00:06 +03:00
levlam
234c7423bf Add userTypeBot.can_be_added_to_attach_menu flag. 2022-03-25 13:02:01 +03:00
levlam
214e9cf3f2 Add inlineKeyboardButtonTypeWebViewUrl. 2022-03-25 00:32:38 +03:00
levlam
9d481df04d Add td_api::answerWebViewQuery. 2022-03-24 11:42:47 +03:00
levlam
afa00d8b00 Add default administrator rights to botInfo. 2022-03-22 14:52:27 +03:00
levlam
ef8d959e98 Add td_api::chatAdministratorRights. 2022-03-22 13:17:48 +03:00
levlam
fa4e17fe95 Move bot-only fields in userFullInfo to class botInfo. 2022-03-18 15:04:47 +03:00
levlam
479667dd1a Update layer to 140. 2022-03-18 14:46:01 +03:00
levlam
7da29e17d6 Add empty AttachMenuManager. 2022-03-25 14:17:09 +03:00
levlam
461b740987 Add InlineQueriesManager::answer_inline_query function. 2022-03-24 11:31:33 +03:00
levlam
62b99ba52a Allow server to add reply_to_message_id for yet unsent messages. 2022-03-23 21:16:02 +03:00
levlam
358f9bb1ad Pass dialog_id to register_message_reply. 2022-03-23 18:27:17 +03:00
levlam
ff014add18 Reget message from server after failed to get its thread with MSG_ID_INVALID. 2022-03-22 14:59:57 +03:00
levlam
de6c4648d4 Simplify get_administrator_rights/get_restricted_rights. 2022-03-22 13:30:55 +03:00
levlam
f743763da4 Reuse get_restricted_rights. 2022-03-22 12:49:58 +03:00
levlam
180c2e34fd Add simpler DialogParticipantStatus constructors. 2022-03-22 12:38:44 +03:00
levlam
17f407abfb Move is_anonymous to AdministratorRights. 2022-03-22 12:09:43 +03:00
levlam
a7a6ee25cb Add pq_add_mul static function. 2022-03-21 20:57:47 +03:00
levlam
2ae689f54f Add another pq_factorize test. 2022-03-21 20:43:28 +03:00
levlam
dfe41c9a0d Remove too new messages in on_get_history beforehand just in case. 2022-03-21 20:14:26 +03:00
levlam
ac4e273274 Move logging of expected errors to ERROR. 2022-03-21 19:52:07 +03:00
levlam
93a2b9895d Optimize GCD in pq_factorize. 2022-03-21 19:38:40 +03:00
levlam
cb155ebf1a Improve log message. 2022-03-21 10:24:20 +03:00
levlam
6e86faaa0f Improve factorization tests. 2022-03-20 00:01:07 +03:00
Marco Melorio
1d15bafb50 Update renamed tdlib rust lib.
The tdgrand library has been renamed to just 'tdlib'.
2022-03-19 22:17:32 +03:00
levlam
cb063ac210 Remove wrong CHECK. Fixes #1892. 2022-03-19 21:58:10 +03:00
levlam
4d13e1354e Move ChannelParticipantFilter to separate header. 2022-03-19 21:53:33 +03:00
levlam
26c18680f2 Move DialogParticipantFilter to separate header. 2022-03-19 21:37:46 +03:00
levlam
329e351e09 Simplify DialogParticipantStatus constructors. 2022-03-19 20:34:16 +03:00
levlam
a8df27c3d9 Add get_administrator_rights function. 2022-03-19 01:22:45 +03:00
levlam
5d71289b72 Move get_dialog_participant_status to DialogParticipantStatus constructor. 2022-03-18 19:13:22 +03:00
levlam
f8e8bc6035 Move restriction flags to RestrictedRights. 2022-03-18 18:47:34 +03:00
levlam
2c38e261d2 Reuse RestrictedRights::get_chat_banned_rights. 2022-03-18 18:27:10 +03:00
levlam
0c9943c42e Remove separate GET_RESTRICTED_RIGHTS flags. 2022-03-18 18:14:39 +03:00
levlam
d913e6ec0e Add get_effective_restricted_rights. 2022-03-18 17:50:55 +03:00
levlam
07b4f6c16d Remove duplicate administrator flags from DialogParticipantStatus. 2022-03-18 16:56:22 +03:00
levlam
d97d20a420 Reuse AdministratorRights get_ methods. 2022-03-18 16:25:07 +03:00
levlam
163bfbcc7a Reuse AdministratorRights and RestrictedRights methods. 2022-03-18 16:07:14 +03:00
levlam
aa80935b73 Add class AdministratorRights. 2022-03-18 15:44:41 +03:00
levlam
9233d32b8e Fix misprint. 2022-03-17 23:33:02 +03:00
levlam
a434bad933 Improve error messages for forwards of messages with protected content. 2022-03-16 15:56:01 +03:00
levlam
3f54c301ea Update version to 1.8.2. 2022-03-15 20:09:29 +03:00
levlam
c9441d78be Allow to send MentionName using TextUrl entities. 2022-03-15 14:49:05 +03:00
alyral
a78245ee69
Add more Settings links (#1884) 2022-03-14 20:13:59 +03:00
Andrea Cavalli
48a93aadb9
Support function generic result type (#1809)
Fixes #1708
2022-03-14 16:29:17 +03:00
levlam
ccf2da2865 Move find_package(ABSL) under TD_WITH_ABSEIL. 2022-03-14 16:20:56 +03:00
levlam
f9efb87f7d Improve log message. 2022-03-14 14:08:04 +03:00
levlam
cd21f58e7d Optimize FlatHashTable::emplace. 2022-03-14 13:25:41 +03:00
levlam
057b2d1e05 Remove EndSentinel, not allowed in C++14. 2022-03-13 23:14:18 +03:00