Commit Graph

10744 Commits

Author SHA1 Message Date
levlam
70d6969b8a Support "document" link preview type. 2024-07-04 16:39:13 +03:00
levlam
d193456bf2 Add td_api::linkPreviewTypeArticle. 2024-07-04 16:24:45 +03:00
levlam
5c4ccdb1d6 Add td_api::linkPreviewTypeAnimation. 2024-07-04 16:11:51 +03:00
levlam
74249b7176 Use td_api::linkPreviewTypeUnsupported for unsupported link preview types. 2024-07-04 15:29:38 +03:00
levlam
e34f16c3bc Add td_api::linkPreviewTypePhoto. 2024-07-04 15:26:41 +03:00
levlam
14a74af9fd Support link preview type "video". 2024-07-04 15:03:40 +03:00
levlam
243eee3819 Add td_api::linkPreviewTypeApp. 2024-07-04 15:02:37 +03:00
levlam
5944fda0d6 Remove embed_ fields from linkPreview. 2024-07-04 13:58:21 +03:00
levlam
f2a855901a Add linkPreviewTypeAudio/linkPreviewTypeVideo. 2024-07-04 13:57:15 +03:00
levlam
baec4850ae Add linkPreviewTypeEmbeddedAudioPlayer/linkPreviewTypeEmbeddedVideoPlayer. 2024-07-04 13:28:35 +03:00
levlam
f1a08b3559 Add td_api::linkPreviewTypeWebApp. 2024-07-04 10:49:35 +03:00
levlam
2d0d07aaae Add td_api::linkPreviewTypeUser. 2024-07-04 10:38:39 +03:00
levlam
7489967137 Add td_api::linkPreviewTypeInvoice. 2024-07-04 00:32:00 +03:00
levlam
d913fdbb83 Add linkPreviewTypeChat.creates_join_request. 2024-07-04 00:30:17 +03:00
levlam
b635ec1fa5 Add td_api::linkPreviewTypeChat. 2024-07-03 23:47:06 +03:00
levlam
b83fa55ee1 Add td_api::linkPreviewType*Boost 2024-07-03 18:24:32 +03:00
levlam
c207b266bd Add td_api::linkPreviewTypeChannel. 2024-07-03 18:16:15 +03:00
levlam
85758c069d Add td_api::linkPreviewTypeSupergroup. 2024-07-03 18:15:07 +03:00
levlam
8d6cb39a8e Add td_api::linkPreviewTypeVideoChat. 2024-07-03 17:44:20 +03:00
levlam
2ae48540b1 Add td_api::linkPreviewTypeStory. 2024-07-03 16:40:32 +03:00
levlam
6b408d486c Add td_api::linkPreviewTypeTheme. 2024-07-03 16:31:26 +03:00
levlam
5b9bfcd67e Add td_api::linkPreviewTypePremiumGiftCode. 2024-07-03 16:07:19 +03:00
levlam
11271865c5 Add td_api::linkPreviewTypeShareableChatFolder. 2024-07-03 16:04:04 +03:00
levlam
7e85824bd2 Add td_api::linkPreviewTypeBackground. 2024-07-03 15:59:55 +03:00
levlam
3872aa26d1 Add strongly-typed linkPreviewTypeStickerSet. 2024-07-03 15:49:53 +03:00
levlam
51d0e70b9e Rename webPage to linkPreview. 2024-07-03 15:15:06 +03:00
levlam
f39b10d8ef Update layer to 184. 2024-07-03 14:56:11 +03:00
levlam
3cd9356987 Fix building for Android. 2024-07-05 12:58:01 +03:00
levlam
650c3d97a9 Just drop main key from guest DCs if it is broken. 2024-07-04 19:44:37 +03:00
levlam
2820a9d281 Return back missing call to MessagesManager::before_get_difference. 2024-07-03 11:58:51 +03:00
levlam
91b8c93a81 Don't dup file identifiers in forwarded messages. 2024-07-02 14:58:25 +03:00
levlam
35cfcf5d15 Update version to 1.8.32. 2024-07-01 01:02:10 +03:00
levlam
e2b2918d27 Always run upload for paid media. 2024-07-01 00:22:42 +03:00
levlam
d44af8ce19 Improve PaidMedia class names. 2024-06-30 12:26:00 +03:00
levlam
eb8f3419bb Various fixes. 2024-06-30 09:29:53 +03:00
levlam
0ba8247033 Implicitly cast media_pos type. 2024-06-30 00:18:35 +03:00
levlam
0f984b24c7 Add internalLinkTypeSideMenuBot.is_compact. 2024-06-29 23:47:33 +03:00
levlam
aa26c117ee Add internalLinkTypeWebApp.is_compact. 2024-06-29 22:35:45 +03:00
levlam
9297ae4098 Add "web_app_allowed_protocols" option. 2024-06-29 22:26:15 +03:00
levlam
ee2a3b3bcc Add section_separator_color to theme parameters. 2024-06-29 22:16:10 +03:00
levlam
4f3eccd17e Add logging if receive no expected/receive unexpected query_id. 2024-06-29 17:44:06 +03:00
levlam
db61f74b62 Add cloud_project_number to updateApplicationVerificationRequired. 2024-06-29 17:14:02 +03:00
levlam
9c4a509b99 Add td_api::pushMessageContentPaidMedia. 2024-06-28 18:23:34 +03:00
levlam
0f4e9015e5 Add supergroupFullInfo.has_paid_media_allowed. 2024-06-28 17:31:04 +03:00
levlam
fa49c93624 Support messagePaidMedia in inputInvoiceMessage. 2024-06-28 16:27:20 +03:00
levlam
1ab9b685c4 Create chat in GetStarsTransactionsQuery. 2024-06-28 14:44:22 +03:00
levlam
fc7cf76a5f Support file reference repair for media from star transactions. 2024-06-28 14:05:25 +03:00
levlam
02bd5a2498 Add StarManager::reload_star_transaction. 2024-06-28 13:29:22 +03:00
levlam
218877c0ac Add StarManager to Global. 2024-06-27 21:21:20 +03:00
levlam
8b1ed9d258 Add firebaseDeviceVerificationParametersPlayIntegrity.cloud_project_number. 2024-06-27 19:24:45 +03:00
levlam
aa6c964692 Add FirebaseDeviceVerificationParameters. 2024-06-27 19:16:43 +03:00
levlam
c77d6957c5 Support sending of multiple paid media. 2024-06-27 18:38:53 +03:00
levlam
3f4607cbdc Add get_uploaded_message_content. 2024-06-26 16:32:15 +03:00
levlam
8a2f6c761e Support upload of multiple paid media. 2024-06-26 15:25:56 +03:00
levlam
606d9bf32a Support single paid media in extract_was_uploaded. 2024-06-26 14:55:57 +03:00
levlam
edb35811be Support delete_message_content_thumbnail for PaidMedia. 2024-06-26 14:13:08 +03:00
levlam
ed26d0da16 Add struct UploadedFileInfo. 2024-06-26 13:39:52 +03:00
levlam
224ec33016 Always dup paid media file identifiers if there are multiple files. 2024-06-26 13:32:08 +03:00
levlam
30f1e339d6 Add is_uploaded_input_media. 2024-06-26 13:03:32 +03:00
levlam
c24222546e Improve names of get_input_media functions from MessageContent. 2024-06-26 12:19:40 +03:00
levlam
d93d5a535f Support merge_message_contents for PaidMedia. 2024-06-25 16:45:37 +03:00
levlam
5e3189f984 Support compare_message_content for PaidMedia. 2024-06-25 16:22:15 +03:00
levlam
55ba5ba092 Add and use MessageExtendedMedia::dup_to_send. 2024-06-25 15:17:00 +03:00
levlam
1f9062834c Allow to send paid media only to channels. 2024-06-25 13:39:19 +03:00
levlam
031864db3e Use dup_photo in dup_story_content. 2024-06-25 00:33:37 +03:00
levlam
c304bb12d6 Add and use dup_photo. 2024-06-25 00:24:11 +03:00
levlam
f8bf2d5370 Add show_caption_above_media to messagePaidMedia. 2024-06-24 22:52:40 +03:00
levlam
f23e47b3e4 Add td_api::inputMessagePaidMedia and support sending single paid media. 2024-06-24 21:36:14 +03:00
levlam
9c85fdf990 Add "paid_media_message_star_count_max" option. 2024-06-24 20:50:04 +03:00
levlam
60d3130193 Add td_api::getStarAdAccountUrl. 2024-06-24 20:45:55 +03:00
levlam
9061e9f2b1 Support paid media message contents with multiple files in MessagesManager. 2024-06-24 19:51:12 +03:00
levlam
719c03b0a2 Add and use FileManager::extract_file_references. 2024-06-24 18:57:32 +03:00
levlam
96d29d141a Move caption out of MessageExtendedMedia. 2024-06-24 16:31:07 +03:00
levlam
960f407045 Add td_api::inputMessageExtendedMedia. 2024-06-24 16:13:40 +03:00
levlam
0e4c9d3641 Add td_api::premiumFeatureMessageEffects. 2024-06-24 14:50:06 +03:00
levlam
0056687a52 Add td_api::starTransactionPartnerTelegramAds. 2024-06-24 14:36:42 +03:00
levlam
9cb1df3586 Add starTransactionPartnerChannel.media. 2024-06-21 15:47:12 +03:00
levlam
0115a73d6e Add starTransactionPartnerChannel.paid_media_message_id. 2024-06-21 15:06:54 +03:00
levlam
ab0a1fc9ee Don't warn about bot payload for owned bots. 2024-06-21 14:48:59 +03:00
levlam
78aae0b3f3 Improve name of starTransactionPartnerBot. 2024-06-21 14:45:12 +03:00
levlam
2b72ea52c3 Support PaidMedia polling. 2024-06-21 13:39:40 +03:00
levlam
a865253feb Support updateMessageExtendedMedia for PaidMedia. 2024-06-21 13:30:40 +03:00
levlam
d0bc0ccfd8 Add td_api::messagePaidMedia. 2024-06-21 12:25:23 +03:00
levlam
5cb008b58d Move caption out of ExtendedMedia. 2024-06-20 19:01:21 +03:00
levlam
babcde8c76 Log if receive unexpected transaction fields. 2024-06-20 18:01:59 +03:00
levlam
ce47a526c6 Add starTransactionPartnerUser.bot_payload. 2024-06-20 17:46:25 +03:00
levlam
5063f64bc6 Update layer to 183. 2024-06-19 18:18:27 +03:00
levlam
8144c50b71 Don't log 0 PTS gaps. 2024-06-28 19:01:45 +03:00
levlam
83204d4b2d Add only_valid parameter to UserId::get_user_ids. 2024-06-27 12:53:33 +03:00
levlam
785e909ad3 Immediately return error for get_channel_participant in non-administered channels. 2024-06-25 17:39:15 +03:00
levlam
06e1b15ccc Add and use QuickReplyManager::register_new_message. 2024-06-24 14:05:06 +03:00
levlam
6101a4f108 Improve update_sent_message_content_from_temporary_message method name. 2024-06-23 10:50:28 +03:00
levlam
3a50bc6332 Add can_be_local_message_content. 2024-06-22 11:05:35 +03:00
levlam
741272ad8f Don't mark queries as unanswered for extremely slow connections. 2024-06-21 17:12:50 +03:00
levlam
70adbbb9f6 Add current_time to on_pong. 2024-06-21 17:06:20 +03:00
levlam
3d0f92e0cb Add get_expired_message_content_type. 2024-06-21 14:00:29 +03:00
levlam
f3c52beaba Don't pass shortcut_id to delete_message_files. 2024-06-20 17:08:06 +03:00
levlam
dd26967b8f Don't pass message_full_id to change_message_files. 2024-06-20 17:06:31 +03:00
levlam
80ad015c72 Allow anonymous administrators to react as channels. 2024-06-19 17:29:49 +03:00
levlam
63c7d03018 Remove old implementation of get_theme_parameters_json_string. 2024-06-19 16:07:04 +03:00
levlam
c6928a9cb6 Fix SaveDraftMessageQuery. 2024-06-19 14:58:08 +03:00
levlam
19c54ae90a Improve handling of business messages. 2024-06-19 14:43:05 +03:00
levlam
8f19c751dc Update version to 1.8.31. 2024-06-18 00:59:04 +03:00
levlam
14b66aec1b Register quick reply messages with forwarded stories. 2024-06-18 00:36:02 +03:00
levlam
81b6860f3c Register dice quick reply messages. 2024-06-18 00:28:54 +03:00
levlam
2911fcc518 Register animated emoji quick reply messages. 2024-06-17 23:55:19 +03:00
levlam
6dc9a25622 Register quick reply message web pages. 2024-06-17 23:13:11 +03:00
levlam
9a059f073c Add callbacks for register/unregister quick reply message content. 2024-06-17 19:28:04 +03:00
levlam
7db80d67a3 Add QuickReplyManager::get_message_editable. 2024-06-17 19:20:22 +03:00
levlam
f13b696cb6 Pass const Message to do_send_media. 2024-06-17 19:08:37 +03:00
levlam
204ceff1d0 Minor quick reply fixes. 2024-06-17 18:47:29 +03:00
levlam
eba7f868f1 Fix QuickReplyManager::get_message_file_ids. 2024-06-17 18:45:40 +03:00
levlam
969264c149 Improve name of revenueWithdrawalStateSucceeded class. 2024-06-17 17:09:42 +03:00
levlam
d8e5e2528e Fix stopPoll. 2024-06-17 02:33:43 +03:00
levlam
5c06e873f3 Add "story_link_area_count_max" option. 2024-06-17 00:32:42 +03:00
levlam
8def10793d Update common TLD list. 2024-06-17 00:11:23 +03:00
levlam
a92a3785a6 Improve StarTransactionPartner class name. 2024-06-16 23:09:04 +03:00
levlam
e059564184 Various fixes. 2024-06-16 22:33:27 +03:00
levlam
70f9a53bfc Move convert_stats_graph to StatisticsManager. 2024-06-16 22:28:07 +03:00
levlam
442484d2d5 Add storyAreaPosition.corner_radius_percentage. 2024-06-16 22:00:48 +03:00
levlam
315ee9b1d1 Add starRevenueStatus.next_withdrawal_in. 2024-06-16 21:33:51 +03:00
levlam
0fba6aaaf4 Allow negative star balance. 2024-06-15 22:09:44 +03:00
levlam
1ebd431791 Allow self in get_star_transactions. 2024-06-14 23:31:13 +03:00
levlam
8460b1fe51 Add "star_withdrawal_count_min" option. 2024-06-14 18:21:46 +03:00
levlam
403c905cb1 Add td_api::starTransactionSourceChannel. 2024-06-14 18:10:01 +03:00
levlam
5d73204805 Add td_api::updateStarRevenueStatus. 2024-06-14 18:06:20 +03:00
levlam
40f6c540dd Add and use StarManager::get_star_count. 2024-06-14 17:23:13 +03:00
levlam
db4f61e261 Add td_api::getStarRevenueStatistics. 2024-06-14 17:06:26 +03:00
levlam
ebe83764eb Improve getStarWithdrawalUrl. 2024-06-14 15:18:35 +03:00
levlam
9288aa5f16 Allow getStarTransactions for bots. 2024-06-14 14:20:25 +03:00
levlam
f4a64ad28c Add getStarTransactions.owner_id. 2024-06-14 14:09:02 +03:00
levlam
b0bfe55580 Add getStarTransactions.limit. 2024-06-14 13:42:18 +03:00
levlam
848e33bc39 Add td_api::getStarWithdrawalUrl. 2024-06-13 23:21:04 +03:00
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
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
cc02215c5f Fix is_cashtag. 2024-06-04 13:14:21 +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
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
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
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
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
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
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
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
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
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