Commit Graph

7637 Commits

Author SHA1 Message Date
levlam
21e2cff6b4 Improve getUserProfilePhotos documentation. 2022-12-24 08:59:08 +03:00
levlam
bc730f7d0f Improve photo field order in userFullInfo. 2022-12-24 08:54:17 +03:00
levlam
1416cb13b2 tg_cli: randomize sendMessageAlbum testing. 2022-12-23 19:11:52 +03:00
levlam
b0446523eb Support sending of media with spoiler. 2022-12-23 18:27:38 +03:00
levlam
3342dcef23 Improve delete_my_profile_photo_from_cache. 2022-12-23 18:05:41 +03:00
levlam
7a865961c5 Add source to drop_user_full_photos. 2022-12-23 17:16:02 +03:00
levlam
38fb9a2413 Guarantee that all UserFull photos are known or none. 2022-12-23 17:07:53 +03:00
levlam
5e44b04cc2 Always reload full user after changing a photo. 2022-12-23 16:32:14 +03:00
levlam
9d192f5674 Remove unused ContactsManager::on_update_user_photo. 2022-12-23 16:09:45 +03:00
levlam
168d921533 Keep personal and public photos after setting previous profile photo. 2022-12-23 15:36:40 +03:00
levlam
63745c9ace Preload UserFull before deletion of profile photos. 2022-12-23 15:11:00 +03:00
levlam
f3d4492086 Repair personal and public photo with getUserFull. 2022-12-23 14:52:12 +03:00
levlam
c467910ad6 Fix photo.id usages. 2022-12-23 14:30:30 +03:00
levlam
3f55703211 Register suggested profile photos. 2022-12-23 13:19:56 +03:00
levlam
f28fe46746 Don't update cache when suggesting a profile photo. 2022-12-22 22:53:40 +03:00
levlam
5b24e30cf5 Check userProfilePhoto.photo_id. 2022-12-22 22:41:11 +03:00
levlam
a80794ffeb Explicitly call drop_user_full_photos. 2022-12-22 22:38:30 +03:00
levlam
252df2ff43 Drop only needed full profile photos. 2022-12-22 22:23:52 +03:00
levlam
044b1ef6af Avoid duplicate updateChatPhoto updates. 2022-12-22 21:41:43 +03:00
levlam
f6de50e19f Fix some spelling. 2022-12-22 17:04:18 +03:00
levlam
f40a6ff477 Add StickerTypeFullInfo. 2022-12-21 23:25:31 +03:00
levlam
14dd89e804 Disable sending of media with spoilers for now. 2022-12-21 19:14:32 +03:00
levlam
d810a73a4f Hide can_get_message_thread for non-root messages. 2022-12-21 19:10:36 +03:00
levlam
d4b7ebdd1e tg_cli: fix call to canPurchasePremium. 2022-12-21 18:06:08 +03:00
levlam
b8f4df741b Remove PhotoWithSpoiler and VideoWithSpoiler file types. 2022-12-21 17:37:16 +03:00
levlam
816c7d312a Combine sticker set reload queries. 2022-12-21 17:07:21 +03:00
levlam
0d4c918fea Reload emoji sticker sets once. 2022-12-21 15:18:42 +03:00
levlam
6516210321 Remove "themed_emoji_statuses_sticker_set_id" option. 2022-12-21 12:26:29 +03:00
levlam
94e678dbc8 Add has_spoiler flag to messagePhoto and messageVideo. 2022-12-20 18:06:21 +03:00
levlam
6cb9371061 Add toggleSupergroupHasHiddenMembers. 2022-12-20 15:51:37 +03:00
levlam
8bfc68b3f8 Improve ContactsManager::get_channel_effective_has_hidden_participants. 2022-12-20 15:12:36 +03:00
levlam
299dc26be6 Add phoneNumberInfo.is_anonymous. 2022-12-20 15:01:39 +03:00
levlam
164848cb8f Allow to add emoji stickers to animations, photos and videos. 2022-12-20 14:04:22 +03:00
levlam
01c1bcc149 Support stickerSetNoCovered. 2022-12-20 13:31:59 +03:00
levlam
d611b21f17 Increase MessageUnsupported version to load photo and video with spoiler. 2022-12-20 13:05:28 +03:00
levlam
0fe8023cdc Add new flags to basicGroupFullInfo. 2022-12-20 11:17:51 +03:00
levlam
983cb965cf Add supergroupFullInfo.can_hide_members. 2022-12-20 11:04:00 +03:00
levlam
f4f156a5b1 Hide viewers in chats with hidden participants. 2022-12-19 21:34:38 +03:00
levlam
89c407c129 Use server-side online count for supergroups with hidden members. 2022-12-19 21:25:53 +03:00
levlam
db761e0852 Correctly process received channel participants. 2022-12-19 21:20:14 +03:00
levlam
786cbf990c Add supergroupFullInfo.has_hidden_members. 2022-12-19 20:29:33 +03:00
levlam
f2d8575828 Add supergroupFullInfo.can_toggle_aggressive_anti_spam. 2022-12-19 13:59:09 +03:00
levlam
8a2598869c Rename fallback photo to public photo. 2022-12-19 13:03:38 +03:00
levlam
9d4517ab26 tg_cli: simplify message TTL testing. 2022-12-16 16:36:51 +03:00
levlam
0b8e1747a5 tg_cli: simplify has_spoiler testing. 2022-12-16 15:58:33 +03:00
levlam
02db4f2fac Support sending of photos and videos with spoiler animation. 2022-12-15 22:41:55 +03:00
levlam
ab349e1562 Support photo deletion in setUserPersonalProfilePhoto. 2022-12-15 18:39:39 +03:00
levlam
1ee924aeb2 Add suggestUserPersonalProfilePhoto. 2022-12-15 18:12:30 +03:00
levlam
7b8ce74ec2 Allow to set fallback profile photo. 2022-12-15 17:44:26 +03:00
levlam
8de2bc531d Add userFullInfo.fallback_photo. 2022-12-15 17:17:42 +03:00
levlam
121dd73bfb Add ContactsManager::get_user_full_profile_photo_id. 2022-12-15 15:27:22 +03:00
levlam
214c8d5e70 Add replyMarkupShowKeyboard.is_persistent. 2022-12-15 14:59:12 +03:00
levlam
c30756f450 Add AttachmentMenuBot.request_write_access. 2022-12-15 14:25:45 +03:00
levlam
743ba7cc28 Add toggleBotIsAddedToAttachmentMenu.allow_write_access. 2022-12-15 14:21:22 +03:00
levlam
cc52263026 Add td_api::messageBotWriteAccessAllowed 2022-12-14 21:13:48 +03:00
levlam
5ed064b810 Split some long class/field descriptions. 2022-12-14 17:35:31 +03:00
levlam
1edde0e808 Split multiline documentation by different lines. 2022-12-14 16:30:37 +03:00
levlam
b2c838f7bb Add td_api::setUserPersonalProfilePhoto. 2022-12-13 14:16:49 +03:00
levlam
0db6fe533b Support personal photo in UserFull. 2022-12-09 18:46:57 +03:00
levlam
f941df4ec7 Add profilePhoto.is_personal flag. 2022-12-09 15:52:21 +03:00
levlam
ebeb524f70 Add messageSuggestProfilePhoto. 2022-12-09 14:13:37 +03:00
levlam
9cc023111d Add sticker.has_text_color. 2022-12-09 13:39:29 +03:00
levlam
8e7d5f5594 Update layer to 151. 2022-12-08 20:58:37 +03:00
levlam
86d5f12e6e Don't try to load the same chat many times from the database. 2022-12-23 14:28:03 +03:00
levlam
1e65d38483 Ignore ReadMessageContents updates for bots. 2022-12-22 17:19:33 +03:00
levlam
01d7178272 Add source to do_reload_sticker_set. 2022-12-21 11:18:30 +03:00
levlam
2afe1fc6ce Drop pending updates with too big PTS after getDifference. 2022-12-20 12:42:03 +03:00
levlam
4f8844d6d5 Unify parameter order. 2022-12-20 11:27:38 +03:00
levlam
b714a53084 Improve authorization states documentation. 2022-12-19 17:12:48 +03:00
levlam
f1eedfaa47 Simplify some usages of optional TL fields. 2022-12-18 22:15:57 +03:00
levlam
4240026bf7 Check that sticker is still in the set before using it. 2022-12-17 21:14:39 +03:00
levlam
5b8161c838 Simplify optional fields access in *Full. 2022-12-16 12:37:49 +03:00
levlam
36c7dc2b63 Improve FullLocalFileLocation default constructor. 2022-12-15 23:05:51 +03:00
levlam
f97c103e2b Update last read inbox/outbox message identifiers in topics. 2022-12-14 14:25:04 +03:00
levlam
848de33676 Replace top_thread_message_id in unsupported messages. 2022-12-14 13:28:16 +03:00
levlam
e531ae2eb0 Never create again deleted forum topics. 2022-12-14 02:24:38 +03:00
levlam
d4dc4b6c4e Fix forum topic deletion. 2022-12-13 15:22:27 +03:00
levlam
0e33195953 Move static get_message_id/get_message_dialog_id to corresponding classes. 2022-12-12 21:43:49 +03:00
levlam
d2060a2eb3 Improve log messages with time. 2022-12-11 01:32:46 +03:00
levlam
1f129ecade Simplify update logging. 2022-12-11 01:20:13 +03:00
levlam
b10ad9ffc4 Increase MessageUnsupported version. 2022-12-10 23:13:59 +03:00
levlam
b634948c15 Move static MessageId helpers to MessageId class. 2022-12-10 22:57:41 +03:00
levlam
8ee04b37e6 Minor improvements. 2022-12-09 12:12:49 +03:00
levlam
6cbe1825ef Delete left dialogs from filters. 2022-12-08 13:14:50 +03:00
levlam
29752073cf Get channel difference if needed in getForumTopics. 2022-12-07 20:20:06 +03:00
levlam
b395539414 Get channel difference if needed in getForumTopic. 2022-12-07 19:58:12 +03:00
levlam
a32bb3e7ef Move get_messages_info to MessagesInfo.cpp. 2022-12-07 19:38:42 +03:00
levlam
75453b542f Add separate header for MessagesInfo. 2022-12-07 19:28:27 +03:00
levlam
2e139cc895 Fix processing of links to messages in General topic. 2022-12-07 18:18:39 +03:00
levlam
67a67276a3 Support creation of message links for messages in General topic. 2022-12-07 17:54:03 +03:00
levlam
1db1532591 Add is_forum_channel. 2022-12-07 17:21:36 +03:00
levlam
a7952f3836 Fix compilation error. 2022-12-07 09:45:37 +03:00
levlam
5b5e05c13e Update defeult value for "forum_member_count_min" option. 2022-12-07 01:18:53 +03:00
levlam
9e524598a5 Update version to 1.8.9. 2022-12-06 23:49:39 +03:00
levlam
294c99248e Fix add_local_message. 2022-12-06 19:32:02 +03:00
levlam
05ad0474bf Add td_api::getForumTopics. 2022-12-06 18:16:22 +03:00
levlam
8917b9c845 Support updates about forum topic notification settings. 2022-12-06 16:48:32 +03:00
levlam
bc2e23a27f Add need_update_dialog_notification_settings. 2022-12-06 16:34:17 +03:00
levlam
58d84a1c7e Improve get_dialog_notification_settings(td_api::object_ptr<td_api::chatNotificationSettings> &&notification_settings). 2022-12-06 16:18:11 +03:00
levlam
3c842f1ecb Improve get_dialog_notification_settings(tl_object_ptr<telegram_api::peerNotifySettings>). 2022-12-06 15:23:11 +03:00