Commit Graph

496 Commits

Author SHA1 Message Date
levlam
4194d9478b Add webPage.skip_confirmation. 2023-10-19 13:03:27 +03:00
levlam
20de4b3135 Remove get_message_content_object parameter. 2023-10-17 16:20:45 +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
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
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
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
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
580e856f44 Support giveaway forwarding. 2023-10-13 12:47:34 +03:00
levlam
f31635e9a8 Support country code restrictions for giveaways. 2023-10-12 18:58:40 +03:00
levlam
3dea942078 Add td_api::premiumGiveawayParameters. 2023-10-12 17:05:03 +03:00
levlam
d20ddeb65c Add td_api::messagePremiumGiveaway. 2023-09-30 00:32:39 +03:00
levlam
1ebbd360db Add td_api::messagePremiumGiftCode. 2023-09-29 17:55:03 +03:00
levlam
bd36f48054 Update layer to 166. 2023-09-28 16:13:36 +03:00
AYMEN Mohammed
50c3bf2e4f
Fix typos. (#2641) 2023-10-18 19:12:31 +03:00
levlam
8abe652785 Don't allow forward of stories to secret chats. 2023-10-14 02:47:49 +03:00
levlam
b5bf594662 Improve messageBotWriteAccessAllowed class. 2023-09-28 15:15:00 +03:00
levlam
74679944af Remove error-prone server_time_cached. 2023-10-04 12:24:58 +03:00
levlam
5c93447ade Increase MessageUnsupported version to reget messages with boost links. 2023-09-28 19:04:50 +03:00
levlam
2de39ffffe Fix can_have_input_media for stories. 2023-09-23 16:33:34 +03:00
levlam
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +03:00
levlam
82c702c16d Minor improvements. 2023-09-19 21:59:14 +03:00
levlam
153ff5503b Update layer to 164. 2023-08-15 22:45:37 +03:00
levlam
5ebbda1c26 Add td_api::MessageSelfDestructType. 2023-09-06 21:27:45 +03:00
levlam
aec04a2d01 Support immediately disappearing photos and videos. 2023-09-06 20:45:15 +03:00
levlam
249da789e7 Add messageBotWriteAccessAllowed.by_request. 2023-08-25 16:53:50 +03:00
levlam
1a2bfad094 Move message content self-destruct time checks to create_input_message_content. 2023-08-29 18:51:57 +03:00
levlam
a0990ef2fd Various fixes. 2023-08-15 17:45:16 +03:00
levlam
b12ade01f6 Add more checks for server StoryId. 2023-08-10 20:22:12 +03:00
levlam
7f4e614bfe Add td_api::inputStoryArea. 2023-08-01 18:11:30 +03:00
levlam
9dcfd9d66d Add ReactionManager and move there all reaction-related methods from StickersManager. 2023-08-09 12:59:48 +03:00
levlam
d2add02ac9 Move get_sorted_available_reactions to StickersManager. 2023-08-09 12:07:13 +03:00
levlam
451c559539 Add various checks. 2023-07-23 01:41:59 +03:00
levlam
fa1e7a1eab Fix get_message_content_min_user_ids. 2023-07-14 14:04:16 +03:00
levlam
558305046c Use get_story_force if appropriate. 2023-07-10 16:50:01 +03:00
levlam
82b524de0a Create chats for received story identifiers. 2023-07-10 16:39:49 +03:00
levlam
4ae098c3a8 Add StoryFullId to dependencies. 2023-07-10 15:36:38 +03:00
levlam
aed9823659 Fix dup_story_content. 2023-07-05 15:40:08 +03:00
levlam
b04eeb4d87 Ignore parsed MessageContent of unknown type. 2023-07-03 15:46:31 +03:00
levlam
2bf47d0809 Minor fixes. 2023-07-01 16:22:01 +03:00