Commit Graph

11528 Commits

Author SHA1 Message Date
levlam
a7e98779f0 Add test for is_visible_url. 2023-10-19 13:45:39 +03:00
levlam
88199d1865 Skip confirmation in link preview opening for visible URLs. 2023-10-19 13:20:48 +03:00
levlam
4194d9478b Add webPage.skip_confirmation. 2023-10-19 13:03:27 +03:00
levlam
f78bc2ae32 Add td_api::setChatAccentColor. 2023-10-18 19:43:14 +03:00
levlam
6ec7ab73e5 Add "giveaway_duration_max" option. 2023-10-18 18:28:55 +03:00
levlam
7eec2eb54b Add "giveaway_boost_count_per_premium" option. 2023-10-18 18:25:42 +03:00
levlam
c249fe39af Add "channel_custom_accent_color_boost_level_min" option. 2023-10-18 18:22:54 +03:00
levlam
28bdceaaef Add td_api::setAccentColor. 2023-10-18 17:56:45 +03:00
levlam
74fc996843 tg_cli: add class CustomEmojiId. 2023-10-18 16:48:18 +03:00
levlam
372f505d71 Support optional accent color. 2023-10-18 16:23:04 +03:00
levlam
7df8a8f3d0 Support user/chat.background_custom_emoji_id. 2023-10-18 15:59:25 +03:00
levlam
364b058508 Ignore invalid accent colors. 2023-10-18 13:33:44 +03:00
levlam
20de4b3135 Remove get_message_content_object parameter. 2023-10-17 16:20:45 +03:00
levlam
1b49787c88 Support accent color in channels. 2023-10-17 15:20:50 +03:00
levlam
dd6fd86637 Add chat.accentColorId. 2023-10-17 15:09:57 +03:00
levlam
b07818c160 Add user.accent_color_id. 2023-10-17 14:23:42 +03:00
levlam
22e4b0d641 Add class AccentColorId. 2023-10-17 13:52:04 +03:00
levlam
02b87ef1f3 Add chatEventReplyBackgroundCustomEmojiChanged. 2023-10-17 13:11:12 +03:00
levlam
38baaf4953 Add td_api::chatEventAccentColorChanged. 2023-10-17 12:58:01 +03:00
levlam
ba15f3e1ef Add InputMessageText::add_dependencies. 2023-10-17 12:31:01 +03:00
levlam
8552180f0d Add Message.invert_media flag. 2023-10-17 12:27:26 +03:00
levlam
72cb3665b4 Allow empty text witn non-empty link preview. 2023-10-17 02:07:40 +03:00
levlam
af2f07a1d7 Support telegram_api::botInlineMessageMediaWebPage. 2023-10-17 01:55:37 +03:00
levlam
ac96bd439d Support inputBotInlineMessageMediaWebPage. 2023-10-17 01:49:13 +03:00
levlam
e556ed04a0 Add ContactsManager::can_use_premium_custom_emoji. 2023-10-17 01:25:58 +03:00
levlam
cc08225d30 Always use the first URL as web_page_url in secret chats. 2023-10-17 00:37:44 +03:00
levlam
c6a4510779 Clear web_page_url in outgoing messages if preview is disabled. 2023-10-17 00:08:50 +03:00
levlam
6917503e5e Remove WebPagesManager::get_secret_input_media. 2023-10-16 23:18:43 +03:00
levlam
4f6f976e50 Log if expected web_page_url isn't found. 2023-10-16 23:09:17 +03:00
levlam
b0df339750 Ignore force_*_media if url isn't specified exlicitly. 2023-10-16 23:06:48 +03:00
levlam
cdedb9ee1f Return web_page_url in messageText. 2023-10-16 22:33:53 +03:00
levlam
a495429a9b Improve URL to WebPageId correspondence. 2023-10-16 21:41:43 +03:00
levlam
98ca07b9c5 Improve variable names. 2023-10-16 21:18:41 +03:00
levlam
19367e78db Move get_input_message_text_object inside InputMessageText class. 2023-10-16 20:56:28 +03:00
levlam
b9e7c8d7da Use messages.sendMedia to send text messages with custom URLs. 2023-10-16 20:41:39 +03:00
levlam
d16fc8294c Add td_api::linkPreviewOptions. 2023-10-16 20:12:33 +03:00
levlam
77faddc76f Add WebPagesManager::get_web_page_url. 2023-10-16 19:37:40 +03:00
levlam
104727cb75 Add webPage.force_*_media flags. 2023-10-16 17:36:45 +03:00
levlam
8185dbfecc Add messageText.is_web_page_preview_manually_chosen. 2023-10-16 17:02:06 +03:00
levlam
8d55df14a0 Support web page flags in messageMediaWebPage. 2023-10-16 16:47:22 +03:00
levlam
d261743f91 Add WebPage.has_large_media. 2023-10-16 16:02:18 +03:00
levlam
84d628f05d Add td_api::messagePremiumGiveawayCreated. 2023-10-16 11:31:11 +03:00
levlam
294538ec5b Disallow copying of Giveaway messages. 2023-10-14 22:04:47 +03:00
levlam
cae7ba79ed Add sticker to messagePremiumGiftCode. 2023-10-13 16:06:55 +03:00
levlam
a6f0260cf2 Add "giveaway_country_count_max" option. 2023-10-13 14:06:05 +03:00
levlam
e24f68a4ff Add "giveaway_additional_chat_count_max" option. 2023-10-13 13:39:14 +03:00
levlam
129a04b24d Add pushMessageContentPremiumGiveaway. 2023-10-13 13:28:01 +03:00
levlam
ce5f63c5aa Add pushMessageContentPremiumGiftCode. 2023-10-13 13:11:13 +03:00
levlam
580e856f44 Support giveaway forwarding. 2023-10-13 12:47:34 +03:00
levlam
4ef53487dc Add creation_date to information about giveaway. 2023-10-13 11:57:43 +03:00