Commit Graph

8859 Commits

Author SHA1 Message Date
levlam
1f66cc7b14 Unconditionally return status to recreate connection. 2023-10-23 12:51:50 +03:00
levlam
996ad86984 Fix reaction showing for anonymous administrators. 2023-10-23 11:07:03 +03:00
levlam
605a3af4b2 Add and use td::any_of. 2023-10-21 20:41:31 +03:00
levlam
687c6c40c2 Reload message views more often for newer messages. 2023-10-20 22:33:15 +03:00
levlam
deda76beda Poll at most last 25 viewed messages. 2023-10-20 21:30:09 +03:00
levlam
74396f65a1 Add class StickerListType. 2023-10-19 15:12:26 +03:00
levlam
df1e95a57d Mark that td_api::getDefault*Stickers are allowed only for users. 2023-10-19 14:16:33 +03:00
levlam
cabdd047b9 Don't update pts_diff on PTS initialization. 2023-10-19 11:51:33 +03:00
AYMEN Mohammed
50c3bf2e4f
Fix typos. (#2641) 2023-10-18 19:12:31 +03:00
levlam
6c0722ed2e Mark that td_api::setChatMessageAutoDeleteTime is allowed only for users. 2023-10-18 19:08:28 +03:00
levlam
f441415da2 Allow to react anonymous group creator on behalf of a supergroup. 2023-10-16 10:35:47 +03:00
levlam
4c64a7522c Disallow reactions by anonymous administrators. 2023-10-16 10:21:21 +03:00
levlam
1c588eda01 Minor improvements. 2023-10-15 01:20:09 +03:00
levlam
90fd69b202 Add UpdatesManager::is_acceptable_message_media. 2023-10-14 22:48:16 +03:00
levlam
7a6d6cf492 Fix max_proxy_id_ initialization. 2023-10-14 03:06:01 +03:00
levlam
8a711b56d9 Limit the number of ignored updates before end of the first get difference. 2023-10-14 03:00:54 +03:00
levlam
f098853eb5 Add descriptions for MessageContentDupType values. 2023-10-14 02:49:50 +03:00
levlam
8abe652785 Don't allow forward of stories to secret chats. 2023-10-14 02:47:49 +03:00
levlam
4ed0b23c9c Update version to 1.8.20. 2023-10-13 00:45:38 +03:00
levlam
12ffa253b3 Remove empty stored proxy from binlog. 2023-10-12 23:48:40 +03:00
levlam
eed6e0bba6 Don't try to init proxies if they have never been added. 2023-10-12 23:41:46 +03:00
levlam
93ddc9c3db Remove support for dropping old PMC-based chat database. 2023-10-12 23:14:17 +03:00
levlam
97a401cd04 Don't use slow BinlogKeyValue::erase_by_prefix for bots on each start. 2023-10-12 22:53:12 +03:00
levlam
861f0edab4 Replace TopDialogManager.is_active_ with !is_bot(). 2023-10-12 22:30:28 +03:00
levlam
6b576bb2e3 Don't postpone updates for bots before first getDifference. 2023-10-12 19:26:18 +03:00
levlam
8d2d01abcc Always postpone updateChatLastMessage in getCurrentState. 2023-10-11 00:28:56 +03:00
levlam
844e6f2bfb Pass source as pointer to on_update_message_id. 2023-10-10 23:47:28 +03:00
levlam
367b2af164 Make MessageOrigin fields private. 2023-10-09 21:29:23 +03:00
levlam
94f72a026c Inline last usage of MessagesManager::is_forward_info_sender_hidden. 2023-10-09 21:27:14 +03:00
levlam
21068870f0 Add MessageOrigin::hide_sender_if_needed. 2023-10-09 21:24:22 +03:00
levlam
b10220a495 Add MessageOrigin::has_sender_signature(). 2023-10-09 21:16:06 +03:00
levlam
ae6e8b5a91 Add MessageOrigin::get_sender_name(). 2023-10-09 21:10:09 +03:00
levlam
9e82513802 Add and use MessageOrigin::get_message_full_id. 2023-10-09 20:44:44 +03:00
levlam
7b1408d44e Add and use MessageOrigin::get_sender. 2023-10-09 20:06:23 +03:00
levlam
8da2eba168 Add MessageOrigin::add_user_ids/add_channel_ids. 2023-10-09 19:20:53 +03:00
levlam
c05b5ba3e5 Add MessageOrigin::add_dependencies. 2023-10-09 18:56:21 +03:00
levlam
c86d4d1036 Add class MessageOrigin. 2023-10-09 18:48:01 +03:00
levlam
d9d3697987 Remove imported check from is_forward_info_sender_hidden. 2023-10-09 14:23:22 +03:00
levlam
13d02a8644 Add separate class messageImportInfo. 2023-10-09 12:20:32 +03:00
levlam
b5bf594662 Improve messageBotWriteAccessAllowed class. 2023-09-28 15:15:00 +03:00
levlam
e3d89cf90f Add messageReaction.used_sender_id. 2023-09-28 14:32:08 +03:00
levlam
0fd3c55547 Add addedReaction.is_outgoing. 2023-09-28 13:25:33 +03:00
levlam
7d2d0b9f2e Improve names of MessageReaction functions. 2023-09-27 17:25:03 +03:00
levlam
4a02f50969 Add chatBoostStatus.boost_url. 2023-09-25 18:40:55 +03:00
levlam
9a40ea0f10 Update layer to 165. 2023-09-25 18:16:26 +03:00
levlam
de32750836 Use Dependencies to load data for binlog events if appropriate. 2023-10-08 23:16:59 +03:00
levlam
4eb9020d53 Use FlatHashSet for disallowed subdomains. 2023-10-07 11:46:47 +03:00
levlam
409dda8d77 Add more t.me subdomains to exceptions. 2023-10-07 11:42:20 +03:00
levlam
6c88f6dbfe Update list of TLDs. 2023-10-06 00:22:43 +03:00
levlam
9289270cd9 Close databases and binlog on another thread. 2023-10-05 21:50:53 +03:00