Commit Graph

196 Commits

Author SHA1 Message Date
levlam
9fa1656557 Remove unallowed custom emoji when copying poll. 2024-04-23 22:10:48 +03:00
levlam
7be2966e27 Support custom emoji in poll question and options. 2024-04-23 03:10:58 +03:00
levlam
4134f608af Update layer to 179. 2024-04-21 21:57:10 +03:00
levlam
275cf20362 Minor improvements. 2024-04-24 01:00:43 +03:00
levlam
e08cf00efb Remove unused get_formatted_text parameters. 2024-04-23 20:04:38 +03:00
levlam
8e2713ca93 Use get_formatted_text. 2024-04-23 19:43:12 +03:00
levlam
bd8c6be0cd Rename rest of ContactsManager to ChatManager. 2024-04-02 13:06:22 +03:00
levlam
03a624903e Move relevant functions to UserManager. 2024-04-02 03:52:34 +03:00
levlam
11a35768b7 Fix some plural spelling. 2024-03-28 02:03:03 +03:00
levlam
dc2300d7ae Update layer to 176. 2024-02-19 14:07:10 +03:00
levlam
5828e46046 Don't subscribe to some state changes by bots. 2024-02-19 00:23:46 +03:00
levlam
a10f03cde1 Add sanity check. 2024-01-10 21:41:13 +03:00
levlam
b2fccc7d9c Move ContactsManager proxy methods to DialogManager. 2024-01-03 23:07:50 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
53ee8caf37 Simplify QTS update processing. 2023-12-14 23:27:46 +03:00
levlam
413556bab7 Add and use MessagesManager::on_get_message_error. 2023-11-12 22:55:48 +03:00
levlam
baed5606fb Prevent unloading of replied polls. 2023-11-06 20:37:17 +03:00
levlam
bd36f48054 Update layer to 166. 2023-09-28 16:13:36 +03:00
levlam
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +03:00
levlam
4d1d22d6f4 Keep PendingPollAnswer until poll updates are applied. 2023-08-19 06:42:06 +03:00
levlam
b9473decc2 Always list actor_id first in lambda capture. 2023-07-11 17:53:43 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
6702a001f0 Remove unused api.hpp includes. 2023-07-01 12:20:39 +03:00
levlam
38efb6d673 Support MessageSenders as poll voters. 2023-04-25 16:41:04 +03:00
levlam
48d72677d3 Update layer to 159. 2023-04-25 14:27:58 +03:00
levlam
e3256e7b4c Use td::append if possible. 2023-06-10 23:14:03 +03:00
levlam
e626b5f68f Drop binlog events if message database was deleted. 2023-05-15 18:16:55 +03:00
levlam
e79741dca0 Improve Poll field names. 2023-04-25 15:29:24 +03:00
levlam
cfe3e19231 Improve PollOption field names. 2023-04-25 15:16:29 +03:00
levlam
42c585b7ed Simplify voter list handling. 2023-04-25 14:13:34 +03:00
levlam
1ce9f9d27c Minor improvements. 2023-03-24 14:14:37 +03:00
levlam
b6a6c07de5 Add optional source to MultiTimeout::cancel_timeout. 2023-03-17 01:02:30 +03:00
levlam
387e84004b Ignore invalid polls stored in database. 2023-03-14 23:24:19 +03:00
levlam
4c390b4988 Don't use poll multi-timeouts while closing. 2023-03-14 23:20:05 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
92837b3bee Reget message to delete it after receiving "MESSAGE_ID_INVALID" from getPollResults. 2023-03-09 15:54:31 +03:00
levlam
882de6e8e8 Replace unsafe to maintain data_ field with get_data() method. 2023-02-02 03:08:26 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
f1eedfaa47 Simplify some usages of optional TL fields. 2022-12-18 22:15:57 +03:00
levlam
d6842ced1b Avoid update about deleted closed polls. 2022-11-26 12:35:29 +03:00
levlam
3ec53c8d78 Fix compilation error. 2022-11-24 15:25:15 +03:00
levlam
f53cf540b7 Use WaitFreeHashMap to store poll messages. 2022-11-22 12:58:07 +03:00
levlam
5491cc3940 Store polls in a WaitFreeHashMap. 2022-11-22 12:23:58 +03:00
levlam
dd01e73c8f Don't send updateMessageContent about poll messages to bots when the poll is changed. 2022-11-22 12:15:58 +03:00
levlam
8f433070df Minor fixes. 2022-08-14 15:04:08 +03:00
levlam
0c9a309746 Ensure that returned number of poll voters isn't less than the number of known voters. 2022-08-02 21:24:53 +03:00
levlam
6c98bec686 Ensure that poll is removed from being_closed_polls_ after request is completed. 2022-07-24 12:19:51 +03:00
levlam
4cf1e02479 Add multiarg version of Scheduler::destroy_on_scheduler. 2022-07-22 21:21:30 +03:00
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +03:00