Commit Graph

1093 Commits

Author SHA1 Message Date
levlam
13d0536db1 Add chat.background. 2023-04-10 17:23:21 +03:00
levlam
90967ba8cf Improve source in get_channel_full_force. 2023-04-09 23:47:47 +03:00
levlam
bef7184566 Improve have_input_peer for bots. 2023-04-09 23:00:44 +03:00
levlam
a52b6f025f Add td_api::getChatsForChatFolderInviteLink. 2023-04-09 21:54:40 +03:00
levlam
9b089bc194 Improve on_set_profile_photo. 2023-04-07 00:53:13 +03:00
levlam
19e15f283c Improve checkChatUsernameResultUsernamePurchasable detection. 2023-04-03 21:33:04 +03:00
levlam
e4717bae0e Send updateUserFullInfo when bot edit links are changed. 2023-04-03 21:04:22 +03:00
levlam
cc0d148ce2 Add and use static is_user_* functions. 2023-04-03 20:43:25 +03:00
levlam
c44a2d07b5 Add edit links to userFull. 2023-04-03 20:26:31 +03:00
levlam
45a6d9864c Add chatInviteLinkMember.via_chat_filter_invite_link. 2023-04-03 13:36:47 +03:00
levlam
e50e3e0b3a Add updateChatMember.via_chat_filter_invite_link. 2023-04-02 23:45:27 +03:00
levlam
890084df51 Add ContactsManager::leave_dialog. 2023-04-02 11:46:38 +03:00
levlam
ea56e6865a Add td_api::reorderActiveBotUsernames. 2023-03-30 16:41:03 +03:00
levlam
93c3b5cc07 Add toggleBotUsernameIsActive. 2023-03-30 15:34:27 +03:00
levlam
9d88c64718 Add td_api::setBotProfilePhoto. 2023-03-29 21:49:54 +03:00
levlam
aec7d5a26f Add userTypeBot.can_be_edited. 2023-03-28 16:26:42 +03:00
levlam
a45d2de881 Update layer to 158. 2023-03-21 14:11:43 +03:00
levlam
bb28f308ef Always return simple InputPeer. 2023-04-05 20:59:48 +03:00
levlam
c95598e5e1 Don't register users and channels for bots. 2023-03-27 12:05:32 +03:00
levlam
007e3d8d11 Fix get_input_peer for bots. 2023-03-27 12:02:39 +03:00
levlam
2bdb2dc371 Load channels from messages. 2023-03-22 19:22:10 +03:00
levlam
66da2bc97e Add more input_channel checks. 2023-03-22 19:17:00 +03:00
levlam
7c3822d932 Add and use ContactsManager::get_input_user_force. 2023-03-22 18:18:35 +03:00
levlam
25047c28cf Use TRY_RESULT_PROMISE for get_input_user. 2023-03-22 17:39:56 +03:00
levlam
4a0f5011cb Add some secret chat checks. 2023-03-22 15:05:05 +03:00
levlam
670bff9a01 Send updateUser when user.have_access is changed. 2023-03-17 21:59:22 +03:00
levlam
5563ad4304 Add get_update_user/basic_group/supergroup/secret_chat_object 2023-03-17 21:42:34 +03:00
levlam
c44869f873 Support input*FromMessage. 2023-03-17 18:51:04 +03:00
levlam
add71b25c9 Drop requests after few retries if failed to return profile photos. 2023-03-15 14:00:34 +03:00
levlam
56a93292bb Support multiple retries for getUserProfilePhotos. 2023-03-15 13:51:35 +03:00
levlam
1153e5464d Support multiple getUserProfilePhotos requests. 2023-03-15 13:33:41 +03:00
levlam
b1f16cffb2 Improve error message. 2023-03-14 23:39:59 +03:00
levlam
d6faa001e2 Add Global::use_sqlite_pmc. 2023-03-14 01:41:04 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
6c92eaf59e Fix reload_dialog_administrators. 2023-03-10 13:13:57 +03:00
levlam
6c53a61162 Don't process USER_PRIVACY_RESTRICTED errors for bots. 2023-03-09 18:11:12 +03:00
levlam
453aecd9af Ignore USER_NOT_PARTICIPANT error when leaving a channel. 2023-03-09 16:51:12 +03:00
levlam
f100399c8e Don't call getDifference explicitly after failed requests. 2023-03-09 16:41:31 +03:00
levlam
ee3df1d03c Don't try to load broadcast members without being an administrator. 2023-03-09 16:36:33 +03:00
levlam
e45eaa9939 Handle data parsing errors in ContactsManager. 2023-03-08 19:15:51 +03:00
levlam
a49e63985d Send updateAddChatMembersPrivacyForbidden after successful request response. 2023-03-06 21:42:06 +03:00
levlam
e7242b1188 Fix includes. 2023-03-06 20:36:56 +03:00
levlam
0381558d54 Send td_api::updateAddChatMembersPrivacyForbidden after failed addition of a channel member. 2023-03-03 16:09:29 +03:00
levlam
97248f1432 Send td_api::updateAddChatMembersPrivacyForbidden after failed adding of a user to a basic group. 2023-03-03 15:43:14 +03:00
levlam
b45d56d116 Add updateAddChatMembersPrivacyForbidden. 2023-03-03 14:42:30 +03:00
levlam
dff135fa6c Allow truncated links in updates and event log. 2023-03-03 04:23:46 +03:00
levlam
672ef60828 Add td_api::getInternalLink. 2023-03-02 16:21:36 +03:00
levlam
4b7a3dc649 Make StickerSetId storer/parser implementation private. 2023-02-21 12:23:39 +03:00
levlam
1543c41f34 Fix ContactsManager::reload_channel. 2023-02-23 12:52:15 +03:00