Commit Graph

9809 Commits

Author SHA1 Message Date
levlam
d08796fade Reload chat themes with other data. 2023-11-27 13:34:14 +03:00
levlam
a32b11de98 Delete similar chats from database when losing read access to the chat. 2023-11-25 21:44:54 +03:00
levlam
5b6c024aaa Support partial lists for recommended channels. 2023-11-24 13:53:10 +03:00
levlam
f0debd7bb8 Don't update cooldown date with wait time if it is initialized already. 2023-11-24 13:28:39 +03:00
levlam
1e5db44c0d Support telegram_api::updatePeerWallpaper.wallpaper_overridden. 2023-11-23 23:12:59 +03:00
levlam
18377ae3e7 Add userFullInfo.set_chat_background. 2023-11-23 23:08:53 +03:00
levlam
4d98fd1a44 Send updateSpeechRecognitionTrial when it resets. 2023-11-23 16:16:39 +03:00
levlam
2dd9da30be Improve updateSpeechRecognitionTrial. 2023-11-23 15:35:54 +03:00
levlam
50a360c147 Update trial parameters after speech recognition. 2023-11-23 14:49:05 +03:00
levlam
fa6b61d764 Handle full messages.transcribedAudio. 2023-11-23 14:12:27 +03:00
levlam
ec109dfd4a Move speech recognition to TranscriptionManager. 2023-11-23 13:25:56 +03:00
levlam
ab39c96b2c Move transcription update subscription to TranscriptionManager. 2023-11-21 20:32:23 +03:00
levlam
1cdb210ed1 Save speech recognition trial parameters to binlog. 2023-11-21 20:08:05 +03:00
levlam
6793fa6aae Add struct TrialParameters. 2023-11-21 19:51:07 +03:00
levlam
922a0428ed Add TranscriptionManager::get_current_state. 2023-11-21 19:31:27 +03:00
levlam
e5f457c30f Add updateSpeechRecognitionTrial. 2023-11-21 19:27:25 +03:00
levlam
a83f90448f Add empty TranscriptionManager. 2023-11-21 15:14:26 +03:00
levlam
b55af58a69 Cache channel recommendations in database. 2023-11-21 14:13:06 +03:00
levlam
cf882ccc77 Add ContactsManager::are_suitable_recommended_dialogs. 2023-11-21 13:39:32 +03:00
levlam
21222604d0 Reload recommended chats from time to time. 2023-11-20 23:12:42 +03:00
levlam
b6bb02baad Add td_api::getSimilarChats. 2023-11-20 22:03:21 +03:00
levlam
c1352603d5 Add recent story interactions in chat statistics. 2023-11-20 19:46:49 +03:00
levlam
72bf7f0cd7 Add mean reaction and story statistics. 2023-11-20 19:16:36 +03:00
levlam
e1299c8a27 Add td_api::messageSponsorTypeWebApp. 2023-11-20 14:34:56 +03:00
levlam
2d3f202c08 Add SponsoredMessage.button_text. 2023-11-17 15:06:20 +03:00
levlam
a689c8df56 Add Story.can_get_statistics. 2023-11-17 14:58:51 +03:00
levlam
cda21980b0 Add td_api::getStoryStatistics. 2023-11-17 14:26:51 +03:00
levlam
362f43303e Add message reaction statistics. 2023-11-17 13:40:39 +03:00
levlam
f466628e20 Add reaction and story statistics for channels. 2023-11-17 13:38:31 +03:00
levlam
7165045699 Update setChatAvailableReactions documentation. 2023-11-17 12:49:10 +03:00
levlam
7ffcd56f23 Support telegram_api::updateChannelViewForumAsMessages updates. 2023-11-16 17:11:36 +03:00
levlam
a2b133ead5 Add td_api::toggleChatViewAsTopics. 2023-11-16 16:57:18 +03:00
levlam
57e9a6c5f7 Send updateChatDraftMessage when view_as_topics changes. 2023-11-16 15:19:54 +03:00
levlam
3261d9d72c Store copy of Channel.is_forum in Dialog. 2023-11-16 15:04:57 +03:00
levlam
f13dde54a2 Add Chat.view_as_topics. 2023-11-16 13:59:32 +03:00
levlam
1c8205d6de Add td_api::revertChatBackground. 2023-11-10 14:53:16 +03:00
levlam
aa7a0a6ee3 Allow to set chat background for both sides. 2023-11-10 14:40:14 +03:00
levlam
65e474ef49 Support telegram_api::updatePeerWallpaper. 2023-11-10 14:08:46 +03:00
levlam
b28200e0ef Add messageChatSetBackground.only_for_self. 2023-11-10 13:55:59 +03:00
levlam
4f6ac3cd64 Ignore reply_to_message_id if set new background. 2023-11-10 13:45:18 +03:00
levlam
95304c611c Support quote position for replies. 2023-11-10 13:29:37 +03:00
levlam
9207ba4c78 Add searchStickerSets.sticker_type. 2023-11-10 12:48:30 +03:00
levlam
9c88451e1c Add td_api::messagePremiumGiveawayCompleted. 2023-11-09 20:28:27 +03:00
levlam
d20ed201b0 Update layer to 167. 2023-11-09 19:37:26 +03:00
levlam
1a9d769923 Remove unused Query class field. 2023-11-30 15:02:05 +03:00
levlam
edc7dbb038 Forcely preload chat in some StoryManager methods. 2023-11-29 20:10:48 +03:00
levlam
8484108704 Update supergroup.member_count documentation. 2023-11-26 00:00:55 +03:00
levlam
a84e46048d Improve ConnectionState documentation. 2023-11-25 23:54:43 +03:00
levlam
968c0ad5ae Improve documentation. 2023-11-25 23:41:21 +03:00
levlam
f03ffe1d31 Fix singular usages of "statistics". 2023-11-25 23:33:09 +03:00
levlam
e58847a5fb Allow toggleChatIsTranslatable for non-premium users. 2023-11-25 22:01:51 +03:00
levlam
14ba66fb8b Explicitly disable addProxy for watchOS and Emscripten. 2023-11-24 00:09:36 +03:00
levlam
499d4eaf54 Minor improvements. 2023-11-23 08:31:56 +03:00
levlam
2d15b1c7e6 Improve allow_custom_emoji documentation. 2023-11-23 08:07:20 +03:00
levlam
07c1d53a6d Fix can_send_message_content for stickers. 2023-11-22 14:38:22 +03:00
levlam
89b0fbc8ff Don't return error from recognizeSpeech for failed recognitions. 2023-11-21 16:16:14 +03:00
levlam
77d6df1437 Use the latest initConnection constructor. 2023-11-20 13:53:42 +03:00
levlam
3e3fe5f9bb Improve ChatReactions field names. 2023-11-19 02:03:19 +03:00
levlam
ec788c7505 Always warn about manual quote change. 2023-11-18 00:06:31 +03:00
levlam
c847574dbf Keep some allowance for truncated quote length. 2023-11-18 00:02:27 +03:00
levlam
1a70df54ca Fix getChatBoosts.only_gift_codes. 2023-11-17 23:59:39 +03:00
levlam
8d1262ca6a Add source to run_after_channel_difference. 2023-11-17 17:42:28 +03:00
levlam
0e8d062090 Fix handling of ToggleDialogIsTranslatableOnServer log events. 2023-11-16 16:38:59 +03:00
levlam
278ea0791f Improve show_large_media documentation. 2023-11-16 15:31:16 +03:00
levlam
e914500eff Remove stranded assignments. 2023-11-16 15:14:04 +03:00
levlam
aefbf0327f tg_cli: support new lines in formatted text. 2023-11-16 11:58:54 +03:00
levlam
3e189cd8d1 Improve documentation. 2023-11-16 11:51:24 +03:00
levlam
23bdb8ed64 Fix used_sender_id documentation. 2023-11-16 11:49:08 +03:00
levlam
21ab0edef0 Allow empty block quotes in MarkdownV2. 2023-11-15 20:57:13 +03:00
levlam
6adce38062 Allow whitespace-only BlockQuote entities. 2023-11-15 20:29:55 +03:00
levlam
bf6d28be71 Improve documentation. 2023-11-15 16:57:39 +03:00
levlam
8cfcce6de2 Improve spelling in documentation. 2023-11-15 16:53:38 +03:00
levlam
15931d90e2 Optimize FullLocalFileLocation comparison. 2023-11-15 14:02:16 +03:00
levlam
131d96bc04 Optimize FullRemoteFileLocation::operator<. 2023-11-15 13:54:14 +03:00
levlam
d24af0436f Improve premiumGiftCodeInfo.giveaway_message_id. 2023-11-14 14:45:38 +03:00
levlam
718d8dfdef Improve background_custom_emoji_id documentation. 2023-11-13 19:13:40 +03:00
levlam
6c8df6fa7f Improve is_content_read initialization. 2023-11-13 17:26:00 +03:00
levlam
28af2429fb Use user_emoji_status_timeout_ only if last_sent_emoji_status is changed. 2023-11-13 15:16:16 +03:00
levlam
70828853e8 Simplify AuthManager::is_bot. 2023-11-13 15:07:21 +03:00
levlam
2a50068d7e Prolong username cache only for bot usernames for bots. 2023-11-13 14:05:05 +03:00
levlam
9ab9680c21 Remove unneeded usernames.is_empty() checks. 2023-11-13 14:03:32 +03:00
levlam
c6d9b8f160 Initialize User/Chat flags first. 2023-11-13 13:44:15 +03:00
levlam
dc481550de Don't get chat in on_dialog_usernames_received for bots. 2023-11-13 13:33:23 +03:00
levlam
88c05ace2c Compare only identifiers for pending profile photos. 2023-11-13 13:19:58 +03:00
levlam
55bd922fed Use less error-prone timeout time for channel unban. 2023-11-13 00:11:08 +03:00
levlam
413556bab7 Add and use MessagesManager::on_get_message_error. 2023-11-12 22:55:48 +03:00
levlam
24f74a018e Correctly asynchronously destroy found_stickers_. 2023-11-11 09:21:07 +03:00
levlam
1d1d41e39e Update chat background only from outgoing messages. 2023-11-10 18:44:25 +03:00
levlam
ee25630c2b Delete duplicate of a just sent message before sending updateMessageSendSucceeded. 2023-11-10 18:43:04 +03:00
levlam
6ee64289f3 Fix MessagesManager::get_replied_message_id. 2023-11-09 18:23:36 +03:00
levlam
8ec587f537 Improve getRepliedMessage documentation. 2023-11-09 17:00:01 +03:00
levlam
9184b3e62d Don't warn if sticker's emoji changes. 2023-11-09 02:15:35 +03:00
levlam
a538581a4b Return back is_topic_message change. 2023-11-09 02:06:43 +03:00
levlam
67f76241e9 Improve error logging. 2023-11-09 01:52:20 +03:00
levlam
247eff6f58 Fix updates logging. 2023-11-09 01:46:02 +03:00
levlam
10dda3df77 Expect no access to messageMediaStory's chat. 2023-11-09 01:42:20 +03:00
levlam
4ce900c5fd Improve draft message emptiness check. 2023-11-09 01:31:24 +03:00
levlam
9f909a43ea Improve documentation. 2023-11-09 00:44:29 +03:00
levlam
ca3173e1e1 Don't reload chat/channel after receiving them for the first time. 2023-11-09 00:15:19 +03:00
levlam
7039272ae8 Add source to reload_user/chat/channel. 2023-11-08 23:48:27 +03:00