Commit Graph

11348 Commits

Author SHA1 Message Date
levlam
eebac051cb Update has_media_previews after changing media previews. 2024-07-19 18:11:23 +03:00
levlam
bd9f33f0c1 Add botInfo.has_media_previews. 2024-07-19 18:03:07 +03:00
levlam
6d3c92c779 Add td_api::getMainWebAppUrl. 2024-07-19 17:08:34 +03:00
levlam
853301ff1c Add td_api::internalLinkTypeMainWebApp. 2024-07-19 16:43:35 +03:00
levlam
5a00eaa158 Check that bot has main Web App in preview methods. 2024-07-19 16:09:08 +03:00
levlam
a83b83432c Improve documentation of media preview methods. 2024-07-19 16:07:32 +03:00
levlam
26997e39c8 Add userTypeBot.has_main_web_app. 2024-07-19 16:03:47 +03:00
levlam
f45258eb66 Improve documentation. 2024-07-19 15:02:32 +03:00
levlam
fceb1437d7 Add td_api::reorderBotMediaPreviews. 2024-07-19 14:52:36 +03:00
levlam
1abbbc3778 Add td_api::deleteBotMediaPreviews. 2024-07-19 14:38:38 +03:00
levlam
e8b477a3e3 Add td_api::editBotMediaPreview. 2024-07-19 14:18:17 +03:00
levlam
c3ded2ade5 Add BotInfoManager::get_fake_input_media. 2024-07-18 23:50:45 +03:00
levlam
80b71e4410 Add td_api::addBotMediaPreview. 2024-07-18 23:28:08 +03:00
levlam
c53bbeaf95 Add "bot_media_preview_count_max" option. 2024-07-18 21:20:24 +03:00
levlam
cdd7af6ade Support file reference repair for bot media previews. 2024-07-18 18:32:57 +03:00
levlam
daa7c39688 Add Global::bot_info_manager(). 2024-07-18 18:06:17 +03:00
levlam
8396faa832 Add BotInfoManager::reload_bot_media_previews. 2024-07-18 17:58:54 +03:00
levlam
5a5a9a28a4 Add td_api::getBotMediaPreviews. 2024-07-18 17:54:41 +03:00
levlam
d79a350492 Add td_api::getCurrentWeather. 2024-07-17 17:54:46 +03:00
levlam
d49f86e5c2 Use continue instead of break. 2024-07-17 17:22:28 +03:00
levlam
7e8304e6d4 Use request promise in getInlineQueryResults. 2024-07-17 17:19:01 +03:00
levlam
9281efa3f0 Add internal option "weather_bot_username". 2024-07-17 16:40:12 +03:00
levlam
6d5d9a19aa Support weather story areas. 2024-07-17 16:04:52 +03:00
levlam
d26e0fab57 Support tonsite protocol. 2024-07-17 08:36:56 +03:00
levlam
5991a78334 Update list of TLDs. 2024-07-16 21:22:09 +03:00
levlam
3a528d46c8 Support chat links that open chat's profile. 2024-07-16 17:59:27 +03:00
levlam
1c3672cdc6 Add inputStoryContentVideo.main_frame_timestamp. 2024-07-16 16:34:13 +03:00
levlam
ac90866224 Add storyVideo.main_frame_timestamp. 2024-07-16 16:28:49 +03:00
levlam
ee094ea46e Add userTypeBot.active_user_count. 2024-07-16 15:41:55 +03:00
levlam
e9d2d40b53 Add td_api::getPopularWebAppBots. 2024-07-16 10:50:32 +03:00
levlam
c3f32a2090 Add td_api::topChatCategoryWebAppBots. 2024-07-16 10:25:41 +03:00
levlam
29451992ac Add messageGiftedStars.sticker. 2024-07-15 20:06:35 +03:00
levlam
008962a7e9 Add linkPreview.show_media_above_description. 2024-07-11 14:16:19 +03:00
levlam
2f3efdaa73 Add linkPreviewTypeEmbeddedAudioPlayer.thumbnail. 2024-07-11 12:42:23 +03:00
levlam
bb2b10f615 Add td_api::getStarGiftPaymentOptions. 2024-07-10 17:19:43 +03:00
levlam
aaddaab9c0 Improve Telegram Stars spelling in documentation. 2024-07-10 16:55:12 +03:00
levlam
e9b0b26f77 Add td_api::messageGiftedStars. 2024-07-10 15:27:55 +03:00
levlam
ea3de9be89 Improve messageGiftedPremium. 2024-07-10 15:20:56 +03:00
levlam
55391a5355 Add td_api::telegramPaymentPurposeGiftedStars. 2024-07-10 14:38:28 +03:00
levlam
0bacb9fac2 Add td_api::storePaymentPurposeGiftedStars. 2024-07-10 14:33:04 +03:00
levlam
8dd540ca71 Add td_api::starTransactionPartnerUser. 2024-07-10 14:23:05 +03:00
levlam
a40f104470 Add linkPreviewTypeEmbeddedVideoPlayer.thumbnail. 2024-07-10 10:45:05 +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
f8d9205fcd Improve reportSupergroupAntiSpamFalsePositive documentation. 2024-07-09 13:16:52 +03:00
levlam
03dbbf0b04 Add messageProperties.can_be_pinned. 2024-07-09 13:11:05 +03:00
levlam
83744e728a Make "can_edit_fact_check" internal option. 2024-07-09 11:35:50 +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
1c921dd2b1 Improve documentation. 2024-07-08 22:13:53 +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
e72f608122 Improve td_api::messageProperties documentation. 2024-07-08 14:32:46 +03:00
levlam
9006d75603 Add td_api::getMessageProperties. 2024-07-08 14:08:45 +03:00
levlam
e659ae483c Update layer to 185. 2024-07-08 13:34:56 +03:00
levlam
52618cd448 Don't mark boostChat as constant. 2024-07-26 19:02:05 +03:00
levlam
b42009a433 Improve includes. 2024-07-25 14:51:50 +03:00
levlam
086f598411 Simplify download error handling. 2024-07-25 13:53:01 +03:00
levlam
8f7e9e116b Fix FILE_UPLOAD_RESTART. 2024-07-25 13:45:34 +03:00
levlam
2760db1fe4 Separate Download/Generate/Upload queries. 2024-07-24 16:10:13 +03:00
levlam
016663d807 Split FileManager::on_error_impl. 2024-07-24 15:49:16 +03:00
levlam
88c2fd50e5 Improve sendStory.chat_id documentation. 2024-07-23 11:33:57 +03:00
levlam
d4f0283faf Improve sendStory documentation. 2024-07-22 08:53:10 +03:00
levlam
c9a92f64d6 Pass UserManager to get_text_entity_object. 2024-07-21 12:33:02 +03:00
levlam
3a7bdcbe5e Fix clang warnings. 2024-07-19 15:07:05 +03:00
levlam
306e3e355c Log ignored link preview documents. 2024-07-17 15:24:44 +03:00
levlam
6f3fd97877 Support media in "article" link previews. 2024-07-17 15:15:02 +03:00
levlam
f730830154 Rename loop() to try_stop(). 2024-07-16 14:18:29 +03:00
levlam
b46b108060 Call loop() in close_node. 2024-07-16 14:11:57 +03:00
levlam
fee576f702 Don't inherit FileFromBytes from FileLoaderActor. 2024-07-16 14:07:20 +03:00
levlam
e2c17af598 Make inherited FileHashUploader methods private. 2024-07-16 14:00:57 +03:00
levlam
0971292303 Remove update_downloaded_part from FileLoaderActor. 2024-07-16 13:58:48 +03:00
levlam
ee4794b343 Remove update_local_file_location from FileLoaderActor. 2024-07-15 14:44:36 +03:00
levlam
34e81dc272 Set stop_flag_ in FileiDownloader::on_error. 2024-07-14 00:16:53 +03:00
levlam
6564c43d58 Inline FileDownloader::init. 2024-07-13 23:29:19 +03:00
levlam
cd33aa82cc Merge FileLoader and FileDownloader. 2024-07-13 23:20:13 +03:00
levlam
284fe8be53 Remove some unused private fields. 2024-07-13 17:54:38 +03:00
levlam
826ba49660 Set stop_flag_ in FileUploader::on_error. 2024-07-13 10:53:57 +03:00
levlam
bb0eb35027 Inline FileLoader to FileUploader. 2024-07-13 00:59:24 +03:00
levlam
8fee0251f9 Remove unused start_part result value. 2024-07-13 00:48:47 +03:00
levlam
8755d39bc1 Simplify file_type_ update. 2024-07-13 00:42:33 +03:00
levlam
11ef2ec81a Remove unused duplicate private fields. 2024-07-12 23:46:50 +03:00
levlam
706a4336c9 Fix expected size for file uploader. 2024-07-12 21:26:52 +03:00
levlam
72019eab50 Add FileGenerateManager::QueryId. 2024-07-12 18:44:41 +03:00
levlam
755d9e6689 Minor improvements. 2024-07-12 18:21:23 +03:00
levlam
fd822a6372 Move out FileDownloadManager from FileLoadManager. 2024-07-12 18:15:44 +03:00
levlam
30e4e8cecb Add separate FileUploadManager. 2024-07-12 17:27:26 +03:00
levlam
82807ea456 Remove using QueryId = FileLoadManager::QueryId. 2024-07-12 16:24:07 +03:00
levlam
1d6e7f5b1c Don't inherit FileManager from FileLoadManager::Callback. 2024-07-12 16:21:35 +03:00
levlam
1c3d52eec6 Fix misprint. 2024-07-12 15:53:20 +03:00
levlam
b500efff91 Remove FileLoader::Callback. 2024-07-12 15:38:10 +03:00
levlam
c1629cf597 Remove FileLoader::get_callback(). 2024-07-12 15:35:49 +03:00
levlam
d5d9dabe7d Mark requests const if appropriate. 2024-07-12 05:48:51 +03:00
levlam
7609306ac8 Improve log messages. 2024-07-11 22:43:44 +03:00
levlam
989b504a7f Ignore photo for linkPreviewTypeSticker. 2024-07-09 14:09:32 +03:00
levlam
39ecb7828e Update member_count documentation. 2024-07-08 11:30:00 +03:00
levlam
666071218a Use linkPreviewTypePhoto for animations with photo, but without animation. 2024-07-08 11:27:05 +03:00
levlam
cb16492741 Update version to 1.8.33. 2024-07-07 00:07:17 +03:00
levlam
bedbd6e007 Minor improvements. 2024-07-06 23:05:07 +03:00
levlam
203591d295 Fallback to linkPreviewTypePhoto if have photo for unknown embed. 2024-07-06 22:05:55 +03:00
levlam
e630978d30 Fix linkPreviewTypeStory. 2024-07-06 18:42:36 +03:00
levlam
35a4c54666 Use linkPreviewTypePhoto for videos without video. 2024-07-06 18:23:26 +03:00
levlam
95d4ea1856 Use linkPreviewTypePhoto for documents without document. 2024-07-06 18:14:20 +03:00
levlam
4896db62c1 Log unexpected photos in link preview. 2024-07-05 15:22:26 +03:00
levlam
0c7909d87e Add supergroupFullInfo.can_get_star_revenue_statistics. 2024-07-05 14:18:38 +03:00
levlam
e1951c5a84 Add linkPreviewTypeTheme.settings. 2024-07-05 14:10:36 +03:00
levlam
5ae0c78b89 Make ThemeSettings fields private. 2024-07-05 13:58:11 +03:00
levlam
91a0c1acf7 Add ThemeSettings::is_empty(). 2024-07-05 13:49:26 +03:00
levlam
9dd2322d90 Add ThemeSettings.h. 2024-07-05 13:41:35 +03:00
levlam
7b858d20f2 Add BaseTheme.h. 2024-07-05 13:24:29 +03:00
levlam
c9bf8475f3 Add td_api::messagePaymentRefunded. 2024-07-04 20:38:40 +03:00
levlam
5370c29625 Remove unused parameters from get_link_preview_type_object. 2024-07-04 18:57:50 +03:00
levlam
9ad612a42e Add td_api::linkPreviewTypeMessage. 2024-07-04 18:50:48 +03:00
levlam
a31b27c456 Remove duplicate linkPreview fields. 2024-07-04 18:42:50 +03:00
levlam
cc1861568b Add td_api::linkPreviewTypeVideoNote and td_api::linkPreviewTypeVoiceNote. 2024-07-04 18:40:05 +03:00
levlam
cf8f72c07d Add td_api::linkPreviewTypeSticker. 2024-07-04 18:34:30 +03:00
levlam
31f489372e Add td_api::linkPreviewTypeAlbum. 2024-07-04 18:21:24 +03:00
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
78d6adf837 Improve linkPreviewType documentation. 2024-07-03 18:10:21 +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