Commit Graph

11332 Commits

Author SHA1 Message Date
levlam
2f505ad101 Move relevant functions to StarManager. 2024-06-13 22:41:23 +03:00
levlam
e78fbd7f8d Add StarManager. 2024-06-13 22:31:51 +03:00
levlam
0c72e2031b Add withdrawal state to starTransactionSourceFragment. 2024-06-13 20:46:04 +03:00
levlam
021c305770 Rename ChatRevenueWithdrawalState tp RevenueWithdrawalState. 2024-06-13 19:22:45 +03:00
levlam
b33c7d9a02 Add td_api::inputMessageReplyToExternalMessage. 2024-06-13 18:01:46 +03:00
levlam
8ca99fb186 Add td_api::stopBusinessPoll. 2024-06-11 15:05:06 +03:00
levlam
8ea591c338 Add td_api::editBusinessMessageReplyMarkup. 2024-06-11 14:24:31 +03:00
levlam
fe29121452 Add td_api::editBusinessMessageCaption. 2024-06-11 14:10:43 +03:00
levlam
9e466e2b9b Add td_api::editBusinessMessageMedia. 2024-06-11 13:57:32 +03:00
levlam
96c1b0081f Add td_api::editBusinessMessageLiveLocation. 2024-06-11 13:05:17 +03:00
levlam
c1c9f40a20 Add td_api::editBusinessMessageText. 2024-06-10 17:39:48 +03:00
levlam
3f99e0a69b Add td_api::searchPublicStoriesByLocation. 2024-06-07 16:51:06 +03:00
levlam
dcd532d1c0 Add td_api::locationAddress for location story areas. 2024-06-07 16:13:58 +03:00
levlam
98614f6f79 tg_cli: answerCallbackQuery. 2024-06-07 13:16:46 +03:00
levlam
69bf605c7a Add updateNewBusinessCallbackQuery. 2024-06-07 13:06:25 +03:00
levlam
8827ffbbd6 Add class MessageEffectId. 2024-06-05 17:01:11 +03:00
levlam
65c6f3a23a Add draftMessage.effect_id. 2024-06-05 16:31:57 +03:00
levlam
d51b4e18b0 tg_cli: unify sendStory argument order. 2024-06-05 16:01:39 +03:00
levlam
2c87885379 Add td_api::inputStoryAreaTypeLink. 2024-06-05 15:56:55 +03:00
levlam
6ec0f4f1db Improve names of methods and names of their parameters for public message and story search. 2024-06-05 15:29:42 +03:00
levlam
f5a9be27b8 Add td_api::searchPublicVenueStories. 2024-06-05 15:27:16 +03:00
levlam
7c5ee12a0e Add td_api::searchPublicHashtagStories. 2024-06-04 14:48:28 +03:00
levlam
54015a1842 Add clearSearchedForHashtags.clear_cashtags. 2024-06-04 12:51:55 +03:00
levlam
160f0b5f53 Update layer to 182. 2024-06-04 12:45:37 +03:00
levlam
d7f10afcfe Improve documentation. 2024-06-16 03:09:05 +03:00
levlam
73c2145c0b Improve need_message_text_changed_warning. 2024-06-15 22:17:44 +03:00
levlam
d6824ed788 Return Result from get_input_bot_inline_message_id. 2024-06-14 22:43:24 +03:00
levlam
0b255f0260 Use request promise in searchCallMessages. 2024-06-13 15:09:20 +03:00
levlam
4257a341bd Minor fixes. 2024-06-12 14:55:04 +03:00
levlam
b64fe94003 Add logging for ENTITY_BOUNDS_INVALID errors. 2024-06-12 14:08:46 +03:00
levlam
7e950e1b88 Don't check that on_external_update_message_content doesn't load new messages. 2024-06-11 17:22:50 +03:00
levlam
95715158fe Fix replies for scheduled messages. 2024-06-11 16:57:53 +03:00
levlam
fdee1297df Improve on_external_update_message_content. 2024-06-10 20:10:05 +03:00
levlam
97375f8a79 Always pass new emoticon in updateDialogFilter. 2024-06-10 20:00:22 +03:00
levlam
d2d7cc2fe1 Add ping_time and pong_time to error message. 2024-06-10 18:37:39 +03:00
levlam
015f8cdd8f Don't retry get channel difference for unknown chats. 2024-06-09 22:12:04 +03:00
levlam
c39b7dce9a Use request promise ib getChatMessageCalendar. 2024-06-08 21:20:11 +03:00
levlam
a1e41ac1d4 Add specific error for failed translation. 2024-06-07 12:26:39 +03:00
levlam
f2d2a94ae3 Add source to on_get_sticker_document. 2024-06-06 12:29:55 +03:00
levlam
b102c3adef Fix tl_writer_cpp build definitions. 2024-06-04 13:27:07 +03:00
levlam
cc02215c5f Fix is_cashtag. 2024-06-04 13:14:21 +03:00
levlam
f013f47e7b Add separate tl_generate_mtproto target. 2024-06-03 20:19:50 +03:00
levlam
5f6bb81e28 Support cashtags in getSearchedForHashtags and removeSearchedForHashtag. 2024-06-02 01:11:32 +03:00
levlam
4f35dbd418 Make functions static in InlineMessageManager.cpp. 2024-06-01 23:32:25 +03:00
levlam
02ad1269d6 Add cashtag support in searchPublicHashtagMessages. 2024-05-31 18:10:02 +03:00
levlam
65ca3e0293 Improve setMessageFactCheck documentation. 2024-05-30 11:43:03 +03:00
levlam
bf61635886 Improve includes. 2024-05-29 13:51:08 +03:00
levlam
bf52d1cc53 Move inline_message_id methods to InlineMessageManager. 2024-05-29 13:43:33 +03:00
levlam
03ca49f3a1 Move inline game methods to InlineMessageManager. 2024-05-29 13:37:21 +03:00
levlam
580deda3e7 Initialize flags in EditInlineMessageQuery. 2024-05-29 13:28:04 +03:00
levlam
c44ad4af49 Check that dialog_id is valid in MessagesManager::process_input_message_content. 2024-05-29 13:22:03 +03:00
levlam
42295ba33e Move edit_inline_message_* to InlineMessageManager. 2024-05-29 13:19:53 +03:00
levlam
f99a093e0a Add InlineMessageManager. 2024-05-29 12:48:40 +03:00
levlam
bd2baf3429 Update copyright year in new managers. 2024-05-29 12:17:15 +03:00
levlam
fab354add5 Update version to 1.8.30. 2024-05-28 00:09:39 +03:00
levlam
e9e2339e76 Don't add fake sticker attributes. 2024-05-28 00:08:10 +03:00
levlam
969bde99c1 Add starTransaction.is_refund. 2024-05-28 00:07:10 +03:00
levlam
99b3f09f07 Move product_info to starTransactionSourceUser. 2024-05-27 23:58:47 +03:00
levlam
7150f71552 Minor improvements. 2024-05-27 13:06:51 +03:00
levlam
4079658376 Add fake sticker attribute to broken effects. 2024-05-27 12:57:48 +03:00
levlam
bb642b74b6 Reload quick replies if failed to load them from database. 2024-05-27 12:51:55 +03:00
levlam
7d6d1f3a46 Don't set has_bots for bots. 2024-05-27 12:46:58 +03:00
levlam
d6860b1f95 Improve setMessageFactCheck documentation. 2024-05-27 02:38:38 +03:00
levlam
c0cdea4771 Always cancel file upload after message edit. 2024-05-27 02:34:08 +03:00
levlam
e2ea2fe179 Fix SendBusinessMediaQuery. 2024-05-27 02:24:47 +03:00
levlam
66c1ea9750 Fix toggleSupergroupJoinByRequest documentation. 2024-05-26 00:19:04 +03:00
levlam
9caaff98d6 Add td_api::clearSearchedForHashtags. 2024-05-25 20:35:21 +03:00
levlam
c1873564dc Add td_api::removeSearchedForHashtag. 2024-05-25 20:23:33 +03:00
levlam
57186fca18 Add td_api::getSearchedForHashtags. 2024-05-25 20:18:29 +03:00
levlam
d624f49e43 Add td_api::refundStarPayment. 2024-05-24 14:43:30 +03:00
levlam
62acb0aecd Add td_api::PaymentReceiptType and td_api::paymentReceiptTypeStars. 2024-05-24 14:14:07 +03:00
levlam
95e4a4f6d9 Add starTransaction.product_info. 2024-05-24 13:53:20 +03:00
levlam
c4ef2bbf91 Add td_api::productInfo. 2024-05-24 13:44:29 +03:00
levlam
4b6db81c65 Check fact check in closed chats. 2024-05-23 20:46:45 +03:00
levlam
7507a4bd05 Minor improvements. 2024-05-23 17:09:28 +03:00
levlam
3fe6fafd36 Fix are_entities_valid. 2024-05-23 13:49:04 +03:00
levlam
97baf4bda5 Support phone numbers in international format in internal links. 2024-05-23 07:46:08 +03:00
levlam
f17c1eb444 Call upload_media only for files without InputMedia. 2024-05-22 16:52:12 +03:00
levlam
84167ef157 Add "fact_check_length_max" option. 2024-05-22 14:26:55 +03:00
levlam
fa6ed08534 Support expandable block quote entities in MarkdownV2. 2024-05-21 12:26:23 +03:00
levlam
36ebd42a92 Allow attributes without value and support expandable blockquote entities in HTML parse_mode. 2024-05-21 11:50:41 +03:00
levlam
663eb78da5 Add td_api::textEntityTypeExpandableBlockQuote. 2024-05-20 23:52:27 +03:00
levlam
4344d1235e Fix identifier generation for failed to send messages for bots with database. 2024-05-20 17:13:15 +03:00
levlam
3b16fed3ad Improve documentation. 2024-05-20 13:57:06 +03:00
levlam
5e12908520 Add td_api::setMessageFactCheck. 2024-05-20 12:30:05 +03:00
levlam
7739c371e5 Add "can_edit_fact_check" option. 2024-05-19 23:33:14 +03:00
levlam
4cd02020ee Add polling for message.fact_check. 2024-05-19 21:22:51 +03:00
levlam
3dffbae7bc Add message.fact_check. 2024-05-18 23:59:26 +03:00
levlam
45baefbf46 Add td_api::factCheck. 2024-05-17 16:04:47 +03:00
levlam
b6f1a2e195 Add td_api::StarTransactionSource. 2024-05-17 14:34:52 +03:00
levlam
20605f5908 Allow to pay in Telegram Stars. 2024-05-17 13:47:07 +03:00
levlam
48de651558 Add starPaymentOption.is_additional. 2024-05-17 13:36:25 +03:00
levlam
dbf6ba045a tg_cli: fix InputInvoice. 2024-05-17 13:32:02 +03:00
levlam
1f8a1e8585 Add td_api::paymentFormTypeStars. 2024-05-17 13:15:52 +03:00
levlam
560d745f22 Add class td_api::paymentFormType. 2024-05-17 12:51:57 +03:00
levlam
437f99a45e Improve provider_token documentation. 2024-05-17 12:21:04 +03:00
levlam
31194a7591 Add td_api::getStarTransactions. 2024-05-16 20:45:05 +03:00
levlam
3987f69202 Add td_api::getStarPaymentOptions. 2024-05-16 16:21:52 +03:00
levlam
88ee1e8a65 Improve the name of the method canPurchaseFromStore. 2024-05-16 15:05:31 +03:00
levlam
d6ed36f218 Add td_api::storePaymentPurposeStars. 2024-05-16 14:18:00 +03:00
levlam
60064f8c2c Add telegramPaymentPurposeStars. 2024-05-16 14:08:53 +03:00
levlam
7ab4d9b87b Add td_api::updateOwnedStarCount. 2024-05-16 13:41:04 +03:00
levlam
be4543f77c Improve editMessage documentation. 2024-05-16 13:04:04 +03:00
levlam
4434bd327a Allow to edit show_caption_above_media. 2024-05-16 12:42:36 +03:00
levlam
ec5e2353c3 Add messageCopyOptions.new_show_caption_above_media. 2024-05-16 00:04:30 +03:00
levlam
718c054d2c Add is_allowed_invert_caption_message_content. 2024-05-15 23:59:15 +03:00
levlam
70c03cf22f Check that parameter show_caption_above_media is the same for all media album messages. 2024-05-15 23:12:47 +03:00
levlam
30416fe801 Add function check_message_group_message_contents. 2024-05-15 22:53:41 +03:00
levlam
bbf45047d0 Support sending messages with caption above media. 2024-05-15 18:04:42 +03:00
levlam
31b348e108 Move extract_input_caption to MessageContent.cpp. 2024-05-15 17:33:56 +03:00
levlam
f9d3431401 Add flag show_caption_above_media to relevant message content types. 2024-05-15 17:19:41 +03:00
levlam
aa09223b9c Improve updateAvailableMessageEffects. 2024-05-14 14:04:12 +03:00
levlam
d9942a5765 Add searchUserByPhoneNumber.only_local. 2024-05-14 13:45:04 +03:00
levlam
6d780d02af Add td_api::ResendCodeReason. 2024-05-13 15:55:02 +03:00
levlam
6111abc0a1 Add td_api::searchPublicHashtagMessages. 2024-05-10 16:24:32 +03:00
levlam
27499808ed Add class MessageSearchOffset. 2024-05-10 15:28:37 +03:00
levlam
5e872c3f57 Add define TD_TEST_VERIFICATION. 2024-05-10 01:01:28 +03:00
levlam
76ece1b6e0 Add td_api::setApplicationVerificationToken. 2024-05-10 00:42:51 +03:00
levlam
fcf8f012b4 Add td_api::updateApplicationVerificationRequired. 2024-05-09 23:04:50 +03:00
levlam
d5ac68c067 Add NetQuery::add_verification_prefix. 2024-05-09 22:16:52 +03:00
levlam
25d1bf6466 Fix CHECK. 2024-05-09 21:41:57 +03:00
levlam
c9c458b1c6 Support message effects in sendBusinessMessage. 2024-05-09 19:18:17 +03:00
levlam
1324e94c34 Log size of loaded message effects and reactions. 2024-05-09 19:06:31 +03:00
levlam
d490e9a122 Add messageSendOptions.effect_id. 2024-05-09 19:02:17 +03:00
levlam
fe239b7595 Add Message.effect_id. 2024-05-09 17:55:33 +03:00
levlam
1b200bb820 Save and load message effects. 2024-05-09 17:37:07 +03:00
levlam
5d349d86e1 Add td_api::updateAvailableMessageEffects. 2024-05-09 16:54:06 +03:00
levlam
aab71e18cf Add td_api::getMessageEffect. 2024-05-08 18:08:15 +03:00
levlam
4b3e0ee8eb Add td_api::MessageEffectType. 2024-05-08 10:59:30 +03:00
levlam
7b7d60a394 Add td_api::getMessageEffects. 2024-05-07 18:49:00 +03:00
levlam
84adb67a06 Support Play Integrity API additionally to SafetyNet Attestation API. 2024-05-07 13:55:04 +03:00
levlam
571f0b445a Add new revenue amount to updateChatRevenueAmount. 2024-05-07 13:45:35 +03:00
levlam
22ebe2c7bf Update layer to 181. 2024-05-06 19:14:42 +03:00
levlam
2a04800ce9 tg_cli: remove protect_content and update_sticker_set_order flags. 2024-05-21 12:31:13 +03:00
levlam
53c3e79197 Move class HttpDate to tdutils. 2024-05-20 13:46:32 +03:00
levlam
699707a09b Add and use UserManager::get_user_id_object_async. 2024-05-19 21:37:17 +03:00
levlam
3fad1b68a7 Add separate TL_MTPROTO_AUTO_SOURCE. 2024-05-18 21:16:51 +03:00
levlam
a104d812b3 Manually parse mtproto_api::gzip_packed. 2024-05-18 21:01:07 +03:00
levlam
d75adbf2c5 Improve logging. 2024-05-17 18:25:46 +03:00
levlam
ad3e1bf060 Update list of TLDs. 2024-05-16 00:21:31 +03:00
levlam
12c1689b54 Dispatch net query only after locked check of close_flag_. 2024-05-15 15:38:51 +03:00
levlam
29cd56cab0 Move some NetQuery function implementations to cpp. 2024-05-15 15:05:36 +03:00
levlam
f95132c5bd Ignore INPUT_TEXT_EMPTY errors for translateText. 2024-05-15 13:57:33 +03:00
levlam
d269672357 Combine non-bot actions after adding a message to a chat. 2024-05-15 12:23:07 +03:00
levlam
8d8b9ffc0b Asynchronously update message content when story is changed to avoid possible cycles. 2024-05-15 12:05:45 +03:00
levlam
7ab118780a Add source to on_external_update_message_content. 2024-05-15 11:40:47 +03:00
levlam
783033c430 Ignore saved to database order for chats that must not be added to chat list. 2024-05-15 00:29:19 +03:00
levlam
38a1d7ac8e Always create chat to update its order when channel status changes. 2024-05-14 23:31:34 +03:00
levlam
e15768d520 Fix CHECK in need_skip_bot_commands. 2024-05-14 22:02:13 +03:00
levlam
c785ae579c Fix TtlNode operator==. 2024-05-14 21:09:58 +03:00
levlam
6fe43311cb Add protection from chat folder deletion and recreation with the same identifier while chat list is loaded. 2024-05-14 21:00:59 +03:00
levlam
1601b703de Fix condition for creation of a new log event. 2024-05-14 20:45:10 +03:00
levlam
1fdb72aece Add replied_message_info CHECKs. 2024-05-14 20:39:07 +03:00
levlam
a33ba10197 Add more message_id validness CHECKs. 2024-05-14 19:14:09 +03:00
levlam
b45769f4da Handle deletion of chat filter during chat list loading. 2024-05-14 15:21:46 +03:00
levlam
7de27ca2c2 Stop Channel parsing if have invalid flags. 2024-05-14 15:08:34 +03:00
levlam
39d826937e Add logging on Client creation/closing. 2024-05-14 13:05:01 +03:00
levlam
4e0c000968 Actualize supergroup.member_count documentation. 2024-05-13 00:33:02 +03:00
levlam
7b5a88f003 Use Promise in getChatMessageByDate instead of RequestActor. 2024-05-12 00:48:28 +03:00
levlam
3cca264f8d Use Promise in searchSecretMessages instead of RequestActor. 2024-05-11 21:54:21 +03:00
levlam
cf4cfc3c57 Move chat list check inside search_messages. 2024-05-10 14:15:02 +03:00
levlam
1d9f7c0482 Use Promise in searchMessages instead of RequestActor. 2024-05-10 14:08:10 +03:00
levlam
da687ab202 Improve channel accessibility check. 2024-05-09 00:15:11 +03:00
levlam
e4796b9bb6 Fix processing of optional appConfig parameters. 2024-05-08 22:47:53 +03:00
levlam
e065cce247 Move device token check to DeviceTokenManager. 2024-05-08 12:17:11 +03:00
levlam
dbd397cb0e Fix some GCC 4.9 compilation errors. 2024-05-08 10:30:02 +03:00
levlam
0535cba37c Add source to send_update_new_chat. 2024-05-07 20:03:04 +03:00
levlam
836359104e Improve logging for pendding web pages. 2024-05-05 01:21:52 +03:00
levlam
b1044c9348 Don't check received from server strings for emptiness. 2024-05-04 23:12:26 +03:00
levlam
4e085215b3 Improve error message. 2024-05-04 22:42:22 +03:00
levlam
af69dd4397 Update version to 1.8.29. 2024-05-04 02:45:54 +03:00
levlam
e896912ea1 Fix compilation error with old compilers. 2024-05-04 02:44:53 +03:00
levlam
59f8072460 Reload full channel after failed leave attempt to repair member counters. 2024-05-03 16:32:28 +03:00
levlam
489b4ad489 Revert speculative add of self after failed join. 2024-05-03 15:58:15 +03:00
levlam
ea2342d095 Fix dismiss of contact birthdays. 2024-05-03 14:16:42 +03:00
levlam
11631c3442 Document that MP3 and M4A audios can be used as voice notes. 2024-05-03 00:39:35 +03:00
levlam
486ecb8d70 Improve processing of already applied channel updates. 2024-05-02 21:35:25 +03:00
levlam
4b9c94c559 tg_cli: support FreeformGradientPattern. 2024-05-02 18:54:38 +03:00
levlam
f54fdd3926 Ignore rotation angle for non-gradient patterns. 2024-05-02 18:42:08 +03:00
levlam
51db71c250 Add operator<< for BackgroundFill. 2024-05-02 18:30:21 +03:00
levlam
d01cac3344 Improve documentation. 2024-05-02 17:23:41 +03:00
levlam
0b5da7fcd2 Reload chats with inaccessible users for bots. 2024-05-02 17:21:29 +03:00
levlam
a89be2370c Support live_period in editInlineMessageLiveLocation. 2024-05-02 16:32:44 +03:00
levlam
140c97f8ac Support live_period in edtiMessageLiveLocation. 2024-05-02 16:24:35 +03:00
levlam
0a06d75c1a Improve live location documentation. 2024-05-02 14:03:59 +03:00
levlam
67e0e579f5 Fix misprint. 2024-05-02 12:47:17 +03:00
levlam
5ae40fd832 Check that personal chat is a channel chat. 2024-05-01 18:59:07 +03:00
levlam
43012bbfaf Add User.flags2. 2024-05-01 18:50:58 +03:00
levlam
5a7970fe79 Improve emoji category type name and documentation. 2024-05-01 18:24:18 +03:00
levlam
3df2fbc072 Fix correct_option_id check. 2024-05-01 18:05:11 +03:00
levlam
54db2c1540 Improve error messages. 2024-05-01 17:49:24 +03:00
levlam
2d556014c9 Improve deleteAccount method documentation. 2024-05-01 17:43:54 +03:00
levlam
50635ae394 Fix stopPoll. 2024-05-01 12:52:06 +03:00
levlam
379fdf85b7 Various improvements. 2024-04-30 20:48:24 +03:00
levlam
c42bf62038 Add time to the next open and close for business. 2024-04-30 20:12:39 +03:00
levlam
7682cf6e61 Add businessInfo.local_opening_hours. 2024-04-30 16:51:34 +03:00
levlam
78038f1fc9 Return server shortcut by temporary identifier. 2024-04-30 00:03:17 +03:00
levlam
061e11690d Improve log messages. 2024-04-29 22:08:58 +03:00
levlam
420ee182fa Add td_api::addQuickReplyShortcutMessageAlbum. 2024-04-29 21:48:12 +03:00
levlam
f43428d4d8 Add shorthands for getChatMember with self for bots. 2024-04-29 16:46:51 +03:00
levlam
373a17e39e Add updateChatMember.via_join_request. 2024-04-29 15:51:42 +03:00
levlam
ee57967e6b Add td_api::emojiCategoryTypeCombined. 2024-04-28 00:19:11 +03:00
levlam
cae81ef90a Treat custom emoji as premium by default. 2024-04-26 18:38:09 +03:00
levlam
6144401386 Pass source to fill_gap as string. 2024-04-26 17:09:43 +03:00
levlam
8515e24c17 Improve source in on_message_notification_changed. 2024-04-26 16:54:33 +03:00
levlam
b3ef7d3539 Add td_api::hideContactCloseBirthdays. 2024-04-26 15:16:55 +03:00
levlam
02d8cef6c5 Process server-provided birthday today dismissed suggestions. 2024-04-26 15:00:21 +03:00
levlam
79c05c4878 Improve suggested action name. 2024-04-26 14:30:23 +03:00
levlam
1aa1c40eab Add td_api::updateChatRevenueAmount. 2024-04-26 01:15:24 +03:00
levlam
0b6cd420d5 Update getChatPostedToChatPageStories documentation. 2024-04-26 00:16:22 +03:00
levlam
019609c91a Fix .NET binding. 2024-04-25 23:49:18 +03:00
levlam
72368062ef Add stories.pinned_story_ids. 2024-04-25 23:17:06 +03:00
levlam
4cbf16a14e Add "pinned_story_count_max" option. 2024-04-25 23:07:11 +03:00
levlam
7aca38cab5 Add td_api::setChatPinnedStories. 2024-04-25 22:36:19 +03:00
levlam
6d57718258 Add td_api::suggestedActionProlongPremium. 2024-04-25 21:44:05 +03:00
levlam
1df777bb75 Support "premium_manage_subscription_url" internal option. 2024-04-25 20:50:07 +03:00
levlam
6be5906111 Support indefinite sharing of live locations. 2024-04-25 20:38:27 +03:00
levlam
882ee4f3b0 Rename pinned stories to posted to chat page stories. 2024-04-25 13:57:47 +03:00
levlam
d11715781e Improve preliminaryUploadFile documentation. 2024-04-25 12:15:44 +03:00
levlam
394c556f7b Improve td_api::emojiCategory. 2024-04-25 02:54:25 +03:00
levlam
4b078cb36c Add td_api::setReactionNotificationSettings. 2024-04-25 02:13:45 +03:00
levlam
7d0ccce6b4 Save reaction notification settings between restarts. 2024-04-24 17:50:40 +03:00
levlam
0dda4a53f3 Add td_api::updateReactionNotificationSettings. 2024-04-24 17:33:06 +03:00
levlam
8246f955c9 Add td_api::reactionNotificationSettings. 2024-04-24 16:30:07 +03:00
levlam
fe0246093d Add webPage.stickers. 2024-04-24 02:44:42 +03:00
levlam
14f31d81c5 Add td_api::toggleHasSponsoredMessagesEnabled. 2024-04-23 22:48:47 +03:00
levlam
0d2a6ccf14 Add userFullInfo.has_sponsored_messages_enabled. 2024-04-23 22:32:18 +03:00
levlam
9fa1656557 Remove unallowed custom emoji when copying poll. 2024-04-23 22:10:48 +03:00
levlam
e812370dc5 Add class td_api::chatRevenueAmount. 2024-04-23 12:07:48 +03:00
levlam
7be2966e27 Support custom emoji in poll question and options. 2024-04-23 03:10:58 +03:00
levlam
db3f673deb Add td_api::getRecommendedChats. 2024-04-22 20:11:48 +03:00
levlam
495e578a81 Add td_api::reportPhoneNumberCodeMissing. 2024-04-22 18:50:16 +03:00
levlam
440176cd3c Add td_api::reportAuthenticationCodeMissing. 2024-04-22 18:39:16 +03:00
levlam
4706fb3081 Add td_api::authenticationCodeTypeSmsWord and td_api::authenticationCodeTypeSmsPhrase. 2024-04-22 18:18:13 +03:00
levlam
5ffc05a3cf Add phoneNumberAuthenticationSettings.has_unknown_phone_number. 2024-04-22 17:46:51 +03:00
levlam
636fee9aaf Add accent color support for sponsored messages. 2024-04-22 17:36:02 +03:00
levlam
654da1d30e Support new sponsoredMessage scheme. 2024-04-22 17:13:10 +03:00
levlam
b359b32080 Add searchMessages.only_in_channels. 2024-04-22 16:38:30 +03:00
levlam
6194fb4aa1 Support max_reaction_count setting. 2024-04-22 03:19:40 +03:00
levlam
4134f608af Update layer to 179. 2024-04-21 21:57:10 +03:00
levlam
0e1600ac7d Don't store copy of created public broadcasts in MessagesManager. 2024-04-30 14:07:06 +03:00
levlam
d35f26e2ac Check identifier of received chat member. 2024-04-29 16:28:18 +03:00
KnorpelSenf
77b34797d8 Improve error message for empty start_parameter. 2024-04-28 21:56:41 +03:00
levlam
306aec8d6a Check app-provided contact.user_id. 2024-04-28 21:46:18 +03:00
levlam
c0c5aefabf Use TRY_RESULT_PROMISE in LanguagePackManager. 2024-04-27 22:49:59 +03:00
levlam
f6cb50ed93 Fix article spelling. 2024-04-26 02:35:00 +03:00
AYMEN Mohammed
4d90c2a227 Improve documentation. 2024-04-25 19:58:28 +03:00
levlam
b149a7ed0b Fix automatic reply quotes. 2024-04-25 19:48:18 +03:00
levlam
337b193026 Minor improvements. 2024-04-25 16:37:20 +03:00
levlam
73ccba7f0f Make remove_unallowed_quote_entities private to MessageQuote. 2024-04-25 16:30:33 +03:00
levlam
02a99f3c50 Add and use MessageQuote(td_api::inputTextQuote). 2024-04-25 16:18:07 +03:00
levlam
1f6fdd554a Add class MessageQuote and use it in MessageInputReplyTo and RepliedMessageInfo. 2024-04-25 15:52:19 +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
e9beb42444 Add get_formatted_text(string, vector<MessageEntity>). 2024-04-23 19:23:02 +03:00
levlam
2424d681c9 Check that all shortcut messages are loaded before sending a message there. 2024-04-22 16:14:33 +03:00
levlam
c56c89f10d Add quick reply shortcut identifier checks. 2024-04-22 14:36:38 +03:00
levlam
38d31da77a Update version to 1.8.28. 2024-04-21 03:29:55 +03:00
levlam
173724c539 Explicitly cast notify period to double. 2024-04-21 02:58:20 +03:00
levlam
47368ec988 Explicitly use MissingInvitees. 2024-04-21 02:50:11 +03:00
levlam
2ddab77b3e Fix some misprints. 2024-04-21 02:43:33 +03:00
levlam
d0e8dd7b81 Add some checks. 2024-04-21 02:37:54 +03:00
levlam
01e30e5263 Various fixes. 2024-04-21 02:24:11 +03:00
levlam
f3385d6cb7 Improve edit of quick reply messages. 2024-04-21 02:07:16 +03:00
levlam
1221cccbdf Support quick reply media editing. 2024-04-20 18:57:32 +03:00
levlam
93e7755187 Quick reply message improvements. 2024-04-19 16:56:52 +03:00
levlam
4dbb092bc1 Add td_api::editQuickReplyMessage. 2024-04-19 16:42:58 +03:00
levlam
0f25201248 Use TRY_RESULT_PROMISE in edit_message_*. 2024-04-19 15:29:47 +03:00
levlam
b04e7fc89e More check_dialog_access usages. 2024-04-19 14:12:02 +03:00
levlam
3477fb715e Fix method documentation. 2024-04-19 13:46:40 +03:00
levlam
0084ac4166 Fix return type. 2024-04-19 00:48:38 +03:00
levlam
6def37f88b Add td_api::readdQuickReplyShortcutMessages. 2024-04-18 23:45:53 +03:00
levlam
4354d4c5f4 Add td_api::addQuickReplyShortcutInlineQueryResultMessage. 2024-04-18 22:13:39 +03:00
levlam
0af52ba4fd Change shortcut identifier when moving local messages between shortcuts. 2024-04-18 16:54:57 +03:00
levlam
2f9dcae107 Support addQuickReply result processing when the original shortcut has already been renamed. 2024-04-18 16:38:56 +03:00
levlam
d13981695f Try to get new shortcut id from messages also. 2024-04-18 16:20:32 +03:00
levlam
25e7c7ec25 Return specific status from check_send_quick_reply_messages_response. 2024-04-18 16:05:43 +03:00
levlam
e7d7c502c4 Support missing file parts. 2024-04-18 15:13:16 +03:00
levlam
1672e580a9 Support file reference errors for added quick replies. 2024-04-18 15:01:58 +03:00
levlam
0a29b0089c Merge old and new quick reply message contents. 2024-04-18 14:33:07 +03:00
levlam
4c72dc8ec5 Add and use FileManager::try_merge_documents. 2024-04-18 00:21:17 +03:00
levlam
ce50d0519f Don't add twice the same sent message. 2024-04-18 00:10:13 +03:00
levlam
23d845eabd Don't create duplicate quick reply shortcuts. 2024-04-17 21:36:47 +03:00
levlam
5becaaa838 Support quick reply file upload. 2024-04-17 21:29:58 +03:00
levlam
33f5552a18 Implement QuickReplyManager::on_failed_send_quick_reply_messages. 2024-04-17 19:29:50 +03:00
levlam
6a2c579bb1 Disallow live locations in quick replies. 2024-04-17 19:08:42 +03:00
levlam
8e99a8dba1 Add td_api::addQuickReplyShortcutMessage and support adding of quick replies without media. 2024-04-17 18:39:25 +03:00
levlam
8e4a241c7f Don't send empty DeleteQuickReplyMessagesQuery. 2024-04-17 14:31:36 +03:00
levlam
48be50a0e3 Improve combine_work_hour_intervals. 2024-04-16 23:38:30 +03:00
levlam
05866446dc Add QuickReplyManager::add_local_message. 2024-04-16 00:53:48 +03:00
levlam
f3d655f1ac Create local qucik reply shortcut if it doesn't exist yet. 2024-04-15 23:36:27 +03:00
levlam
d8a50a3ef0 Add QuickReplyManager::process_input_message_content. 2024-04-15 23:12:22 +03:00
levlam
5d984efdd3 Add QuickReplyManager::get_input_reply_to_message_id. 2024-04-15 22:55:26 +03:00
levlam
a7dca7a744 Add QuickReplyManager::check_new_shortcut_name function. 2024-04-15 22:41:36 +03:00
levlam
dad721ad47 Improve documentation. 2024-04-15 21:32:58 +03:00
levlam
90d4e3a6d3 Improve sending of quick reply voice messages to users that forbidden that. 2024-04-15 20:36:23 +03:00
levlam
298d16c150 Use MessagesManager::check_dialog_access. 2024-04-15 18:08:30 +03:00
levlam
575acc5485 Use check_dialog_access_in_memory if appropriate. 2024-04-15 17:33:05 +03:00
levlam
c4e1a44a5c Add MessagesManager::check_dialog_access. 2024-04-15 17:28:13 +03:00
levlam
be7434dbf3 Fix chatRevenueWithdrawalStateCompleted. 2024-04-15 15:32:45 +03:00
levlam
723ba8978d Use messages.affectedMessages.pts even if pts_count == 0. 2024-04-15 02:55:53 +03:00
levlam
14b4666423 Use DialogManager::check_dialog_access when appropriate. 2024-04-15 02:32:04 +03:00
levlam
e0a7ff6c53 Add DialogManager::check_dialog_access. 2024-04-15 01:23:14 +03:00
levlam
c0ed8f09b0 Add explicit allow_secret_chats to have_input_peer. 2024-04-14 22:59:05 +03:00
levlam
5d16b620aa Ignore can_have_sponsored_messages for old channels. 2024-04-13 21:47:48 +03:00
levlam
3620b06df2 Add td_api::sendPhoneNumberFirebaseSms. 2024-04-13 20:42:41 +03:00
levlam
25958fb406 Combine phone number verification methods into a single API method. 2024-04-13 20:25:05 +03:00
levlam
99d8de1e88 Rewrite PhoneNumberManager as regular manager. 2024-04-13 19:10:52 +03:00
levlam
5bf1142506 Remove PhoneNumberManager::get_state. 2024-04-13 02:05:43 +03:00
levlam
1c99870d6e Don't allow to directly search for greeting stickers. 2024-04-12 03:24:11 +03:00
levlam
c368bd0f38 Remove unused limit in getGreetingStickers. 2024-04-12 03:16:10 +03:00
levlam
5143d3fb6f Add td_api::getGreetingStickers. 2024-04-12 02:57:29 +03:00
levlam
9243f51ff9 Add SendQuickReplyShortcutMessagesLogEvent. 2024-04-12 02:10:55 +03:00
levlam
1bb4a2007b Add td_api::internalLinkTypeBusinessChat. 2024-04-12 01:01:26 +03:00
levlam
1806799357 Add td_api::getBusinessChatLinkInfo. 2024-04-12 00:45:32 +03:00
levlam
9d95eb4a68 Add td_api::deleteBusinessChatLink. 2024-04-11 22:19:44 +03:00
levlam
1d77c95fb2 Add td_api::editBusinessChatLink. 2024-04-11 21:41:28 +03:00
levlam
c0abb6348b Add "business_chat_link_count_max" option. 2024-04-11 21:18:57 +03:00
levlam
8e35a2477c Add td_api::createBusinessChatLink. 2024-04-11 01:43:42 +03:00
levlam
c9224b24ab Add InputBusinessChatLink. 2024-04-11 01:07:03 +03:00
levlam
c4b42c2678 Add td_api::getBusinessChatLinks. 2024-04-10 18:29:43 +03:00
levlam
de881cce99 Add td_api::businessChatLink. 2024-04-10 18:19:39 +03:00
levlam
6c2becce09 Remove updateAddChatMembersPrivacyForbidden: use USER_PRIVACY_RESTRICTED error message instead. 2024-04-10 09:52:21 +03:00
levlam
a784e6fe14 Improve getChatBoostFeatures. 2024-04-10 08:34:29 +03:00
levlam
023ee09714 Return failed to add chat members when adding members to a chat. 2024-04-09 17:01:51 +03:00
levlam
27721159bd Return failed to add members in createNewBasicGroupChat. 2024-04-09 16:19:33 +03:00
levlam
69257ffa6a Add td_api::failedToAddMember. 2024-04-09 16:03:58 +03:00
levlam
ecea209a6b Support draft_text in private chat links. 2024-04-09 01:54:55 +03:00
levlam
cf06ac0d4b Improve updateSpeedLimitNotification documentation. 2024-04-08 20:24:24 +03:00
levlam
33073a5022 Add td_api::updateSpeedLimitNotification. 2024-04-08 20:18:48 +03:00
levlam
8b440b6761 Add internal "upload_premium_speedup_notify_period" option. 2024-04-08 19:21:52 +03:00
levlam
958ad4e4eb Add "premium_download_speedup" and "premium_upload_speedup" options. 2024-04-08 19:18:21 +03:00
levlam
62e4c3263f Improve documentation. 2024-04-08 18:14:45 +03:00
levlam
9e4cda7133 Rename business intro to start page. 2024-04-08 03:29:57 +03:00
levlam
4c1fa3b45d Add td_api::removeBusinessConnectedBotFromChat. 2024-04-08 03:10:33 +03:00
levlam
69fd5333d7 Hide all business bot manage bars when changing business bot. 2024-04-08 02:45:54 +03:00
levlam
7aad37608f Add separate BusinessBotManageBar. 2024-04-08 02:37:52 +03:00
levlam
e7ff4688fc Add td_api::toggleBusinessConnectedBotChatIsPaused. 2024-04-07 22:45:55 +03:00
levlam
83a3190f2f Add action bar dependencies. 2024-04-07 01:59:13 +03:00
levlam
f9dfd502da Add td_api::chatActionBarManageBusinessBot. 2024-04-07 01:46:46 +03:00
levlam
4444f0e328 Log failed message edits. 2024-04-06 21:52:28 +03:00
levlam
a760e92cf3 Fix misprint by @zevlg. 2024-04-05 19:10:59 +03:00
levlam
5ea94725d7 Add "can_withdraw_channel_revenue" option. 2024-04-05 17:26:18 +03:00
levlam
701011ab86 Add td_api::getChatRevenueWithdrawalUrl. 2024-04-05 16:41:35 +03:00
levlam
baa7fe8598 Add td_api::ChatRevenueWithdrawalState. 2024-04-05 15:59:54 +03:00
levlam
5f1938906e Add td_api::ChatRevenueTransactionType. 2024-04-05 15:45:33 +03:00
levlam
4f65363ef8 Add td_api::getChatRevenueTransactions. 2024-04-04 13:55:24 +03:00
levlam
520062085d Add td_api::getChatRevenueStatistics. 2024-04-03 16:49:51 +03:00
levlam
6848380bb7 Add supergroupFullInfo.can_get_revenue. 2024-04-03 05:13:19 +03:00
levlam
cfadebfab4 tg_cli: reduce if-else chain length. 2024-04-02 22:46:15 +03:00
levlam
6cd0e7e5aa Allow checkChatUsername for self without chat with self. 2024-04-02 22:31:37 +03:00
levlam
006be4d564 Reload contact birthdays only if mutual contact changes. 2024-04-02 22:27:53 +03:00
levlam
844d7a505a Add callStateReady.custom_parameters. 2024-04-02 15:22:19 +03:00
levlam
25574476a3 Add td_api::toggleSupergroupCanHaveSponsoredMessages. 2024-04-02 15:17:31 +03:00
levlam
2bec18d95d Add disable sponsored messages boost feature. 2024-04-02 14:49:26 +03:00
levlam
67d42c5e14 Add internal option "channel_restrict_sponsored_level_min". 2024-04-02 14:36:38 +03:00
levlam
b987e84d54 Add supergroupFullInfo.can_have_sponsored_messages. 2024-04-02 14:32:00 +03:00
levlam
bd8c6be0cd Rename rest of ContactsManager to ChatManager. 2024-04-02 13:06:22 +03:00
levlam
9482eb6ede Return back call to UserManager::get_current_state. 2024-04-02 04:13:51 +03:00
levlam
03a624903e Move relevant functions to UserManager. 2024-04-02 03:52:34 +03:00
levlam
6010475d26 Add empty UserManager. 2024-04-01 15:05:02 +03:00
levlam
efc6bd553b Update version to 1.8.27. 2024-03-31 19:24:45 +03:00
levlam
cd25b29452 Fix SharedDialog. 2024-03-31 19:24:00 +03:00
levlam
0b4f0b1657 Destroy business_connections_ asynchronously. 2024-03-31 18:40:09 +03:00
levlam
5bc00fa834 Fix source. 2024-03-31 18:34:25 +03:00
levlam
020415f736 Various fixes. 2024-03-31 18:30:18 +03:00
levlam
f577c1564e Fix GCC compilation error. 2024-03-31 04:10:28 +03:00
levlam
bdbf9adb17 Save and load suggested actions to and from binlog. 2024-03-31 01:10:26 +03:00
levlam
3cbe6c494e Add parser/storer for SuggestedAction. 2024-03-31 00:35:02 +03:00
levlam
7266a0e3b8 Improve documentation. 2024-03-30 14:04:25 +03:00
levlam
0a21620194 Remove extract_group_invite_privacy_forbidden_updates. 2024-03-30 02:56:24 +03:00
levlam
cfeed162e9 Add updateContactCloseBirthdays. 2024-03-29 22:29:37 +03:00
levlam
e9794b9215 Reget config after account phone number is changed. 2024-03-29 17:37:44 +03:00
levlam
fd1d1dbb6c Add "can_set_new_chat_privacy_settings" option. 2024-03-29 16:51:53 +03:00
levlam
2930b87c86 Update "can_use_text_entities_in_story_caption" with other Premium options. 2024-03-29 16:31:49 +03:00
levlam
c3de12ec17 Improve documentation for duration fields. 2024-03-29 15:53:46 +03:00
levlam
25f87a39ac Improve custom emoji checks and business messages processing. 2024-03-29 15:52:03 +03:00
levlam
b741472942 Add td_api::businessFeaturePromotionAnimation. 2024-03-29 13:31:47 +03:00
levlam
260b9cdf9e Add td_api::premiumFeatureBusiness. 2024-03-29 11:28:48 +03:00
levlam
e5d7108f1a Log unsupported premium features. 2024-03-29 11:25:06 +03:00
levlam
a042122b7a Add source to get_chat_type_object. 2024-03-29 11:19:50 +03:00
levlam
ba89fef472 Add td_api::premiumSourceBusinessFeature. 2024-03-29 03:20:56 +03:00
levlam
4c14af9b52 Add td_api::getBusinessFeatures. 2024-03-29 03:17:46 +03:00
levlam
e895a46ed5 Add "business_features" internal option. 2024-03-29 01:14:59 +03:00
levlam
01b7a0e14b Add td_api::setPersonalChat. 2024-03-29 00:46:05 +03:00
levlam
66522165ca Add td_api::getSuitablePersonalChats. 2024-03-29 00:12:54 +03:00
levlam
93663c2542 Improve maintaining of created public broadcasts. 2024-03-28 23:56:06 +03:00
levlam
d7f7a6d87b Add PublicDialogType::ForPersonalDialog. 2024-03-28 23:39:26 +03:00
levlam
6121755719 Fix video note length check. 2024-03-28 23:22:21 +03:00
levlam
98033937cc Explicitly specify 'template ' for fetch_string. 2024-03-28 20:03:31 +03:00
levlam
a9d5078f66 Increase MessageUnsupported version. 2024-03-28 19:11:27 +03:00
levlam
e1f7a1331d Fetch last message of the personal channel if needed. 2024-03-28 18:58:45 +03:00
levlam
877e3329fe Add userFullInfo.personal_chat_id. 2024-03-28 18:38:52 +03:00
levlam
15c3bbdef8 Add td_api::reportChatSponsoredMessage. 2024-03-28 18:24:39 +03:00
levlam
f9859493d4 Add userTypeBot.can_connect_to_business. 2024-03-28 16:29:54 +03:00
levlam
632f1aaec6 Add sponsoredMessage.can_be_reported. 2024-03-23 23:52:06 +03:00
levlam
7ea8f7085d Dismiss SetBirthdate suggested action when birthdate is set. 2024-03-23 23:41:22 +03:00
levlam
323e82d099 Improve condition for using full type name. 2024-03-22 22:55:32 +03:00
levlam
8bf00d067f Don't allow to change my_id. 2024-03-22 16:23:31 +03:00