Commit Graph

3512 Commits

Author SHA1 Message Date
levlam
f9af5c8252 Add author_signature to messages with public sender. 2024-08-08 21:20:16 +03:00
levlam
3918e131e3 Add and use ChatReactions::ignore_non_paid_reaction_types. 2024-08-07 17:16:05 +03:00
levlam
56ef439ff8 Add and use MessageReactions::get_non_paid_reaction_count(). 2024-08-07 16:57:32 +03:00
levlam
6450f5a531 Add and use MessageReactions::are_empty(). 2024-08-07 16:48:06 +03:00
levlam
cc21a58abf Add and use get_channel_show_message_sender. 2024-08-07 16:01:33 +03:00
levlam
2c1ec31420 Improve broadcast checks. 2024-08-07 15:23:25 +03:00
levlam
1a8999c590 Update owned star count when adding paid reactions. 2024-08-07 14:40:15 +03:00
levlam
a4171a8cc7 Locally update owned star count after bying a paid media. 2024-08-07 14:30:45 +03:00
levlam
6d26481186 Fix active live location expiration. 2024-08-06 00:35:03 +03:00
levlam
12e23e68bf Remove MessagesManager::on_load_active_live_location_messages_finished. 2024-08-06 00:15:07 +03:00
levlam
f5e0989f9e Save active live locations after successful delete. 2024-08-05 22:44:47 +03:00
levlam
68e7862169 Remove expired live locations. 2024-08-05 22:42:05 +03:00
levlam
6cfffa0dbc Remove td_api::getActiveLiveLocationMessages. 2024-08-05 21:51:57 +03:00
levlam
7f10402ba0 Add updateActiveLiveLocationMessages. 2024-08-05 21:45:21 +03:00
levlam
6fbcab1cec Return whether active live location was added. 2024-08-05 21:26:50 +03:00
levlam
9a695f08c0 Don't add yet unsent message to active live locations. 2024-08-05 15:08:18 +03:00
levlam
2c8a304e5a Move can_get_added_reactions to messageReactions. 2024-08-04 21:57:57 +03:00
levlam
ff174f3bce Add td_api::removePendingPaidMessageReactions. 2024-08-04 12:53:14 +03:00
levlam
4dc42bc1bd Combine and delay addPaidMessageReaction queries. 2024-08-04 12:26:40 +03:00
levlam
7d93a305ad Update top reactors in MessageReactions::update_from. 2024-08-03 11:46:22 +03:00
levlam
9913849249 Add MessageReactions::add_my_paid_reaction. 2024-08-01 23:31:50 +03:00
levlam
98ed9f98c4 Add td_api::addPaidMessageReaction. 2024-07-26 17:50:18 +03:00
levlam
62d1a85ab6 Add more checks for paid reactions. 2024-07-26 16:39:30 +03:00
levlam
c583fb2fcf Allow to enable paid reaction in channels. 2024-07-26 15:31:09 +03:00
levlam
86a9eb8486 Update layer to 186. 2024-07-23 14:14:34 +03:00
levlam
8324189c3a Simplify calls to get_message_object. 2024-08-12 12:43:36 +03:00
levlam
791915296a Fix source check. 2024-08-11 11:56:01 +03:00
levlam
5807434c8c Schedule next processing of viewed messages only if the user is online. 2024-08-06 12:30:37 +03:00
levlam
8a0e13f440 Immediately reget paid media in newly viewed messages. 2024-08-06 12:20:25 +03:00
levlam
0e1d319f8a Move online status handling to OnlineManager. 2024-08-01 21:08:01 +03:00
levlam
f2d5a2e3bf Ignore updates from business connection. 2024-07-30 13:25:26 +03:00
levlam
d5068c3f55 Add td_api::setBusinessMessageIsPinned. 2024-07-29 20:33:02 +03:00
levlam
6d9864a1cf Add messageProperties.need_show_statistics. 2024-07-20 21:55:41 +03:00
levlam
ea3de9be89 Improve messageGiftedPremium. 2024-07-10 15:20:56 +03:00
levlam
33ad5b431f Improve can_be_paid. 2024-07-09 15:24:11 +03:00
levlam
4a7d9e15c2 Improve can_be_replied. 2024-07-09 13:51:02 +03:00
levlam
773f43d67b Add separate messageProperties can_report_chat and can_report_supergroup_spam. 2024-07-09 13:50:37 +03:00
levlam
779d72e165 Fix can_be_replied. 2024-07-09 13:31:50 +03:00
levlam
03dbbf0b04 Add messageProperties.can_be_pinned. 2024-07-09 13:11:05 +03:00
levlam
ecd58a70ce Add messageProperties.can_set_fact_check. 2024-07-09 11:12:16 +03:00
levlam
46beb7d873 Add messageProperties.can_edit_scheduling_state. 2024-07-08 22:56:02 +03:00
levlam
250f2fda12 Add messageProperties.can_recognize_speech. 2024-07-08 22:42:41 +03:00
levlam
abb004d0de Add messageProperties.can_get_embedding_code. 2024-07-08 22:27:13 +03:00
levlam
504ac111af Add messageProperties.can_get_link. 2024-07-08 21:54:55 +03:00
levlam
db62de6d3e Add messageProperties.can_be_shared_in_story. 2024-07-08 16:07:25 +03:00
levlam
2782bf1095 Add messageProperties.can_be_paid. 2024-07-08 15:38:20 +03:00
levlam
ba48f1b885 Add messageProperties.can_be_replied. 2024-07-08 15:22:14 +03:00
levlam
80467af525 Add messageProperties.can_be_reported. 2024-07-08 15:07:19 +03:00
levlam
9006d75603 Add td_api::getMessageProperties. 2024-07-08 14:08:45 +03:00
levlam
c9a92f64d6 Pass UserManager to get_text_entity_object. 2024-07-21 12:33:02 +03:00