Commit Graph

7388 Commits

Author SHA1 Message Date
levlam
ff0c205fe9 Generate new links for topic messages. 2022-11-04 15:56:16 +03:00
levlam
54799d0024 Support forum message links in getInternalLinkType. 2022-11-04 14:56:25 +03:00
levlam
939d43129c Support message links for forum topics. 2022-11-04 14:40:57 +03:00
levlam
8f9275858f Fix warning. 2022-11-04 13:20:22 +03:00
levlam
cb003d7f66 Fix compilation error. 2022-11-04 11:34:11 +03:00
levlam
f702cad110 Wait for emoji reactions to be loaded once in getEmojiReaction. 2022-11-04 00:59:45 +03:00
levlam
82ab2da9c0 Pass promise to StickersManager::get_emoji_reaction. 2022-11-03 21:07:07 +03:00
levlam
2e3cc8619e Avoid call to is_deleted_message in delete_dialog_messages if it isn't needed. 2022-11-03 20:25:40 +03:00
levlam
136dfd15df Use delete_dialog_messages if appropriate. 2022-11-03 19:56:53 +03:00
levlam
f8783063f3 Improve parameter name. 2022-11-03 19:37:07 +03:00
levlam
e8d1c7deae Remove from_updates parameter from delete_dialog_messages. 2022-11-03 19:26:22 +03:00
levlam
df45195cc6 Split delete_dialog_messages in two functions. 2022-11-03 19:14:35 +03:00
levlam
695fab3323 Refactor delete_newer_server_messages_at_the_end. 2022-11-03 18:35:40 +03:00
levlam
17bc097d12 Destroy deleted messages on another thread. 2022-11-03 18:10:51 +03:00
levlam
d8c36c8062 Improve handling of too long messages and captions. 2022-11-03 16:46:50 +03:00
levlam
579d1dee8d Improve logging. 2022-11-03 11:17:43 +03:00
levlam
c6d1940537 Support "restriction_add_platforms" app config parameter. 2022-11-02 20:38:52 +03:00
levlam
d1afd1c3b7 Minor improvements. 2022-11-02 19:51:41 +03:00
levlam
5aaa20b4d9 Rename forum topic title to topic name. 2022-11-02 17:31:25 +03:00
levlam
4cc5ed345d Improve MessateReplyHeader processing. 2022-11-02 14:04:43 +03:00
levlam
481387b12d Unpin locally only messages from forum topics. 2022-11-02 08:58:13 +03:00
levlam
1c89f505c9 Fix solid backgrounds. 2022-11-02 07:21:20 +03:00
levlam
69f03d8376 Improve message reply header handling. 2022-11-02 06:28:35 +03:00
levlam
cfad15eb17 Allow bots to get default topic icons. 2022-11-01 18:38:07 +03:00
levlam
a8535a78f7 Ignore MESSAGE_NOT_MODIFIED error for added reactions. 2022-11-01 14:38:49 +03:00
levlam
b4432a27ba Use autogenerated constant instead of raw constructor number. 2022-11-01 13:22:56 +03:00
levlam
69d53080bf Split API methods for chats and message threads. 2022-10-31 20:03:28 +03:00
levlam
88e2b735b4 Do nothing for bots in on_dialog_linked_channel_updated. 2022-10-31 19:46:04 +03:00
levlam
342f446631 Support unpinning of all messages in a message thread. 2022-10-31 19:44:01 +03:00
levlam
1cda8096c5 Allow forum topic methods for bots. 2022-10-31 11:53:37 +03:00
levlam
f58737a0c9 Improve getMessageThread for forums. 2022-10-31 11:51:08 +03:00
levlam
fee05c93b5 Avoid expected warning. 2022-10-31 11:16:56 +03:00
levlam
b021af5185 Improve chatActionBar documentation. 2022-10-30 23:40:58 +03:00
levlam
1345e8e9a4 Increase cache version for channels. 2022-10-30 12:17:47 +03:00
levlam
36b19416ac Avoid warning for allowed channel useless updates. 2022-10-30 12:16:24 +03:00
levlam
43deaf4502 Add td_api::deleteForumTopic. 2022-10-30 00:35:37 +03:00
levlam
6acdfbdf9e Keep information about dropped MessageReplyInfo. 2022-10-29 20:18:49 +03:00
levlam
ba7a1bd895 Don't send updateForumTopicInfo for bots just in case. 2022-10-29 02:42:51 +03:00
levlam
ff43a82359 Improve topic message detection. 2022-10-29 02:05:31 +03:00
levlam
6ec8f90367 Allow to get thread of failed to send and yet unsent messages. 2022-10-28 14:59:23 +03:00
levlam
03d17c32c3 Add various fixes. 2022-10-28 14:09:40 +03:00
levlam
fec023500c Add comments about ignored top_thread_message_id. 2022-10-28 13:16:42 +03:00
levlam
4c7e9ad8a6 Add Message.is_topic_message. 2022-10-28 12:43:51 +03:00
levlam
d6482525b3 Add updateForumTopicInfo. 2022-10-28 00:12:44 +03:00
levlam
090d2b4bc3 Add ForumTopicManager::add_topic_info. 2022-10-27 23:30:24 +03:00
levlam
af73084d1d Check that identifier of the edited topic wasn't changed. 2022-10-27 20:03:57 +03:00
levlam
431932eff2 Add separate chatEventForumTopicToggleIsClosed. 2022-10-27 19:52:26 +03:00
levlam
eb559e3671 Add separate messageForumTopicIsClosedToggled. 2022-10-27 19:40:37 +03:00
levlam
25b7412042 Allow to edit forum topic by its creator. 2022-10-27 19:18:25 +03:00
levlam
f79e67cab8 Apply edited data from service message about forum topics. 2022-10-27 19:03:58 +03:00
levlam
99e6629c79 Add toggleForumTopicIsClosed. 2022-10-27 17:31:05 +03:00
levlam
0a0710c3eb Ignore TOPIC_NOT_MODIFIED errors. 2022-10-27 17:00:56 +03:00
levlam
be81c6d2b9 Add td_api::editForumTopic. 2022-10-27 16:53:23 +03:00
levlam
3b58079799 Use async destruction for ForumTopicManager. 2022-10-27 14:59:21 +03:00
levlam
1b9a8cc6fe Add ForumTopicInfo cache. 2022-10-27 14:58:21 +03:00
levlam
b27047bab7 tg_cli: add class MessageThreadId. 2022-10-27 14:19:04 +03:00
levlam
da1b385185 Add openWebApp.message_thread_id. 2022-10-27 12:36:17 +03:00
levlam
e33dac507d Add getForumTopicDefaultIcons. 2022-10-27 10:06:13 +03:00
levlam
ac144ce2e4 Support whitelisted domains. 2022-10-27 00:57:28 +03:00
levlam
90ede43945 Support forum topic creation on behalf of channels. 2022-10-26 18:48:50 +03:00
levlam
8f0d216601 Don't update channel pts if failed to process updateEditChannelMessage. 2022-10-26 14:52:51 +03:00
levlam
201c4c3a2e Improve error logging. 2022-10-26 13:58:37 +03:00
levlam
e1bc6a3394 Disallow deletion of TopicCreate service messages. 2022-10-26 13:58:13 +03:00
levlam
ce59ab321f tg_cli: fix misprint. 2022-10-26 13:57:16 +03:00
levlam
0bf3e7f0e6 Treat usernames of length 4 as valid. 2022-10-25 19:25:15 +03:00
levlam
eadf411679 Support forum topic creation. 2022-10-25 16:10:15 +03:00
levlam
83a2a786ef Add ForumTopicManager. 2022-10-25 15:03:35 +03:00
levlam
4ee2a1c066 Add premiumFeatureForumTopicIcon. 2022-10-25 12:46:07 +03:00
levlam
f9acc95d3d Disallow message history hiding in forums. 2022-10-25 12:13:34 +03:00
levlam
9b304557c2 Add toggleSupergroupIsForum. 2022-10-25 11:52:45 +03:00
levlam
9edfdcfd1e Add class ForumTopic. 2022-10-24 21:10:12 +03:00
levlam
cacdedc8d7 Check message thread identifier with can_use_top_thread_message_id while changing message draft. 2022-10-24 18:23:08 +03:00
levlam
e96d9f9d68 Add ContactsManager::is_forum_channel. 2022-10-24 18:22:43 +03:00
levlam
1fbd94cc81 Use InvokeAfter for requests changing usernames of the current user. 2022-10-24 17:46:27 +03:00
levlam
956d816721 Increase MESSAGE_UNSUPPORTED version. 2022-10-24 17:38:42 +03:00
levlam
303ba8cd23 Use InvokeAfter for requests changing channels. 2022-10-24 17:36:31 +03:00
levlam
75739dd0ea Allow to pass message thread identifier to readAllChatReactions. 2022-10-24 17:04:05 +03:00
levlam
df561b7822 Allow to pass message thread identifier to readAllChatMentions. 2022-10-24 16:57:26 +03:00
levlam
4496c53313 Document searchChatMessages behavior for unsupported search criteria combinations. 2022-10-24 16:00:50 +03:00
levlam
543863b572 Username fixes. 2022-10-24 13:34:20 +03:00
levlam
edc660ba59 Allow to get unread mentions and reactions in a message thread. 2022-10-23 22:16:20 +03:00
levlam
6a16492266 Support can_manage_topics administrator right and chat permission. 2022-10-23 13:20:53 +03:00
levlam
62bcac0198 Support forwarding of messages to message threads. 2022-10-21 18:02:39 +03:00
levlam
0497c09047 Drop sponsored message cache when Premium state is changed. 2022-10-21 15:51:32 +03:00
levlam
ec1310a0e7 Support multiple sponsored messages. 2022-10-21 15:04:56 +03:00
levlam
e6d539097e Support sponsored messages with chat photo. 2022-10-21 14:26:35 +03:00
levlam
0d05683771 Support waveform for video notes. 2022-10-20 23:23:40 +03:00
levlam
14b80ecd6f Support speech recognition for video notes. 2022-10-20 21:31:00 +03:00
levlam
c23dceddf3 Add video note flags. 2022-10-20 20:35:00 +03:00
levlam
acf5b55792 Inline handling of transcribed audio update. 2022-10-20 20:03:49 +03:00
levlam
c9f8390bd5 Move TranscribeAudioQuery to TranscriptionInfo.cpp. 2022-10-20 19:52:20 +03:00
levlam
49c993b674 Make VideoNotesManager an actor. 2022-10-20 18:53:12 +03:00
levlam
46562f56d0 Explicitly subscribe to updateTranscribedAudio updates. 2022-10-20 17:52:32 +03:00
levlam
e079b684f0 Various improvements. 2022-10-20 13:28:07 +03:00
levlam
bd78d57e56 Move RateTranscribedAudioQuery to TranscriptionInfo.cpp. 2022-10-19 21:22:57 +03:00
levlam
5fe3a7ca94 Add class TranscriptionInfo. 2022-10-19 20:43:30 +03:00
levlam
02ed5e4f1e Register video note messages. 2022-10-19 18:30:25 +03:00
levlam
ea12905dd2 Mark reactions as loaded after saving them to database just in case. 2022-10-19 18:06:33 +03:00
levlam
c941f488a0 Proxy speech recognition methods through MessagesManager. 2022-10-19 17:56:18 +03:00
levlam
5e0103c442 Add messageForumTopicEdited. 2022-10-18 22:16:03 +03:00