Commit Graph

1330 Commits

Author SHA1 Message Date
levlam
9a9ffa6794 Add and use can_change_info_and_settings_as_administrator. 2024-02-12 18:48:14 +03:00
levlam
9e32ab8ad1 Improve can_change_info right documentation. 2024-02-12 18:00:38 +03:00
levlam
46f076f47c Add td_api::setSupergroupUnrestrictBoostCount. 2024-02-12 17:42:35 +03:00
levlam
e62f612c36 Add Message.sender_boost_count. 2024-02-11 02:45:18 +03:00
levlam
3745632f68 Support setChatEmojiStatus in supergroups. 2024-02-10 23:39:02 +03:00
levlam
75a812ba10 Support change of profile accent color in supergroups. 2024-02-09 16:54:16 +03:00
levlam
e12a1550d9 More precise check in can_use_premium_custom_emoji. 2024-02-09 16:20:13 +03:00
levlam
2220d6bd32 Poll active stories in supergroups. 2024-02-09 15:40:17 +03:00
levlam
665d04296b Don't send slow_mode_delay_expires_in if user is a booster. 2024-02-09 12:23:49 +03:00
levlam
0238a3da42 Ignore restrictions by supergroup boosters. 2024-02-08 23:30:41 +03:00
levlam
353c809298 Add supergroupFullInfo.unrestrict_boost_count. 2024-02-08 19:04:28 +03:00
levlam
2037b049c5 Add supergroupFullInfo.my_boost_count. 2024-02-08 18:51:40 +03:00
levlam
0dad023262 Allow to use Premium custom emoji from group emoji set in supergroups. 2024-02-08 15:09:26 +03:00
levlam
42784587ad Support custom emoji sticker set in supergroups. 2024-02-08 15:02:04 +03:00
levlam
9080b84649 Don't force sync after log in for bots. 2024-02-02 15:24:23 +03:00
levlam
8377726001 Add source to Binlog::sync. 2024-02-02 15:09:17 +03:00
levlam
cdd7430d3a Silently create chat in get_message_sender_object. 2024-01-26 23:03:37 +03:00
levlam
aa6be7d9bf Add canSendMessageToUser.only_local. 2024-01-26 14:06:27 +03:00
levlam
2acbcdbb60 Allow sending messages to user after receiving a message from them. 2024-01-25 20:56:10 +03:00
levlam
8c2375fdfe Invalidate user_full_contact_require_premium_ when contact_require_premium changes. 2024-01-25 20:51:52 +03:00
levlam
f2262cdcfb Add checks for null user. 2024-01-25 19:11:54 +03:00
levlam
faf975ccc9 Use UserId::get_user_ids instead of explicit transform. 2024-01-24 21:40:14 +03:00
levlam
94141a18dd Make canSendMessageToUser response strongly typed. 2024-01-19 22:14:03 +03:00
levlam
0a6207700d Use GetIsPremiumRequiredToContactQuery to check unknown users. 2024-01-19 21:55:24 +03:00
levlam
5624f91155 Add td_api::canSendMessageToUser. 2024-01-19 15:35:57 +03:00
levlam
59de70bd87 Keep flag UserFull.contact_require_premium. 2024-01-19 15:01:07 +03:00
levlam
a3ac41e283 Add user.restricts_new_chats. 2024-01-19 14:35:37 +03:00
levlam
b2f8a8e5d6 Support UserFull.read_dates_private. 2024-01-09 14:56:32 +03:00
levlam
0e032795b6 Add by_my_privacy_settings flag to td_api::UserStatus. 2024-01-09 12:34:02 +03:00
levlam
b171fbe373 Update layer to 172. 2024-01-09 12:09:10 +03:00
levlam
0823ee492e Add enum ReactionListType. 2024-01-18 20:53:43 +03:00
levlam
a262f0a5f7 Avoid some initialization for bots. 2024-01-24 15:24:16 +03:00
levlam
f24bc41596 Move setting of default option values from ContactsManager to OptionManager. 2024-01-24 14:59:09 +03:00
levlam
cd3cc873f0 Fix usage of unsupported chat identifier. 2024-01-23 19:05:39 +03:00
levlam
c2277a1044 Add source to get_user_full_force. 2024-01-15 14:12:00 +03:00
levlam
d029eff807 Minor improvements. 2024-01-11 00:12:16 +03:00
levlam
509908edda Don't register users/channels in unknown channels. 2024-01-10 20:07:56 +03:00
levlam
1fa64892e1 Don't count non-member creator in administrator count. 2024-01-10 17:49:17 +03:00
levlam
4d51b2c875 Move create_new_chat/create_new_channel to ContactsManager. 2024-01-10 17:09:09 +03:00
levlam
a409af0973 Move migrate_dialog_to_megagroup to ContactsManager. 2024-01-10 15:57:19 +03:00
levlam
1bc8e90c10 Move create_new_secret_chat to ContactsManager. 2024-01-10 15:20:16 +03:00
levlam
7b6ce8b822 Move reload_dialog_info to DialogManager. 2024-01-08 19:20:22 +03:00
levlam
9a90089879 Move check_dialog_username to DialogManager. 2024-01-08 19:14:41 +03:00
levlam
466c841b4e Move send_update_add_chat_members_privacy_forbidden to DialogParticipantManager. 2024-01-08 18:57:44 +03:00
levlam
127b7ad086 Add DialogParticipantManager::speculative_add_channel_user. 2024-01-08 18:50:18 +03:00
levlam
b1d72276a7 Move set_channel_participant_status and similar methods to DialogParticipantManager. 2024-01-08 18:44:13 +03:00
levlam
9660a7f2b1 Move set_dialog_participant_status and similar methods to DialogParticipantManager. 2024-01-08 18:15:21 +03:00
levlam
50b5a6e9bf Move channel participant cache to DialogParticipantManager. 2024-01-08 18:03:04 +03:00
levlam
bba173ea7d Move get_channel_participant to DialogParticipantManager. 2024-01-08 17:45:04 +03:00
levlam
f8565154a1 Move get_dialog_participant to DialogParticipantManager. 2024-01-08 17:35:24 +03:00