Commit Graph

11086 Commits

Author SHA1 Message Date
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