Commit Graph

9959 Commits

Author SHA1 Message Date
levlam
e4038723b2 Support internal min boost level options. 2023-12-26 19:12:00 +03:00
levlam
cd27c67beb Pass-through PREMIUM_SUB_ACTIVE_UNTIL_* errors. 2023-12-26 18:41:41 +03:00
levlam
7a2e2c4ee0 Add paymentProviderSmartGlocal.tokenize_url. 2023-12-26 18:33:02 +03:00
levlam
015976e4f1 Fix story area type. 2023-12-26 18:04:31 +03:00
levlam
aa0db44a9a Improve documentation. 2023-12-26 18:03:25 +03:00
levlam
91013ee921 Add "chat_available_reaction_count_max" option. 2023-12-26 17:11:34 +03:00
levlam
45eca4e8d2 Delete td_api::addApplicationChangelog. 2023-12-26 16:51:58 +03:00
levlam
07bf49d42e Improve logging in need_channel_difference_to_add_message. 2023-12-26 15:54:40 +03:00
levlam
2a685bc9ab Early process received users and chats. 2023-12-26 15:52:17 +03:00
levlam
c3c14ee65e Add td_api::getChatStoryInteractions. 2023-12-26 14:24:42 +03:00
levlam
e83e1ba095 Support telegram_api::StoryReaction. 2023-12-26 13:57:43 +03:00
levlam
8655fbe5d7 Add getStoryInteractions.prefer_forwards. 2023-12-26 13:47:24 +03:00
levlam
b196d38a68 Get channel difference if needed before processing story views list. 2023-12-26 13:11:22 +03:00
levlam
8900038324 Add and use generic MessagesManager::get_channel_differences_if_needed. 2023-12-26 12:02:53 +03:00
levlam
53cf01e7bf Support various types of story interactions. 2023-12-25 22:07:02 +03:00
levlam
be785dd673 Improve StoryViewer constructor. 2023-12-25 17:30:26 +03:00
levlam
05651f587d Add StoryViewer::is_valid. 2023-12-25 16:34:38 +03:00
levlam
964663948d Improve StoryViewer getters. 2023-12-25 16:32:41 +03:00
levlam
a4ed86c44e Update BlockList in StoryViewers::StoryViewers. 2023-12-25 15:52:03 +03:00
levlam
b3d19e51e5 Rename storyViewer to storyInteraction. 2023-12-25 15:34:47 +03:00
levlam
ca2cf0e25c Add storyViewers.total_forward_count. 2023-12-25 15:10:48 +03:00
levlam
c4efc0e2e0 Add td_api::setChatEmojiStatus. 2023-12-25 14:49:22 +03:00
levlam
b1db06d627 Fix update of channel emoji status. 2023-12-25 03:01:45 +03:00
levlam
5979276116 Enable updateChatAvailableReactions for bots. 2023-12-25 02:50:20 +03:00
levlam
aab1bf4fa5 Check for default channel statuses in StickersManager::is_default_emoji_status. 2023-12-24 02:38:17 +03:00
levlam
1494d5fcdf Add td_api::getDisallowedChatEmojiStatuses. 2023-12-24 02:30:49 +03:00
levlam
8090aac1c1 Add stickerSet.is_allowed_as_chat_emoji_status. 2023-12-24 01:23:15 +03:00
levlam
02159a2fce Fix spelling. 2023-12-23 02:16:03 +03:00
levlam
d79114691c Replace td_api::messageUserShared with td_api::messageUsersShared. 2023-12-22 19:17:58 +03:00
levlam
66c6e706ab Replase td_api::shareUserWithBot with td_api::shareUsersWithBot. 2023-12-22 18:47:23 +03:00
levlam
590b3f3c25 Replace td_api::keyboardButtonTypeRequestUser with td_api::keyboardButtonTypeRequestUsers. 2023-12-22 18:06:40 +03:00
levlam
9f9884f2f5 Update setChatBackground documentation. 2023-12-22 13:36:46 +03:00
levlam
f07d21ac6b Add td_api::getDefaultChatEmojiStatuses. 2023-12-22 12:29:12 +03:00
levlam
e2747b6c76 Add td_api::getThemedChatEmojiStatuses. 2023-12-21 22:44:59 +03:00
levlam
40b585d74f Support channel emoji status. 2023-12-21 21:05:42 +03:00
levlam
7f6bdcd42c Add channel.boost_level. 2023-12-21 20:08:30 +03:00
levlam
5cb6ca27cc Add Chat.emoji_status. 2023-12-21 20:01:26 +03:00
levlam
8e85ef9e40 Don't mark background as inited for channels. 2023-12-21 19:10:05 +03:00
levlam
fabcce43c6 Update channel background from ChannelFull. 2023-12-21 19:08:06 +03:00
levlam
88b2781685 Add min_chat_boost_level to accentColor/profileAccentColor. 2023-12-21 18:48:15 +03:00
levlam
022c227515 Add td_api::suggestedActionGiftPremiumForChristmas. 2023-12-21 18:16:32 +03:00
levlam
24611b1fd5 Improve messagePremiumGiveawayWinners documentation. 2023-12-21 17:25:39 +03:00
levlam
b7f5949b98 Add is_supported_reply_message_content. 2023-12-21 17:24:21 +03:00
levlam
092144cf43 Update background_custom_emoji_id documentation. 2023-12-19 19:34:24 +03:00
levlam
9d0bbc4d35 Improve inputStoryAreas documentation. 2023-12-19 19:25:59 +03:00
levlam
14b81a2d48 Always apply background from new message in groups and channels. 2023-12-19 16:24:06 +03:00
levlam
93aa765f44 Add td_api::backgroundTypeChatTheme for boosted chats. 2023-12-19 16:00:50 +03:00
levlam
b3ce27c4ea Add separate deleteDefaultBackground method. 2023-12-19 14:38:37 +03:00
levlam
0fc3b3adc6 Improve names of background-related methods. 2023-12-19 14:33:21 +03:00
levlam
325f56dfe0 Improve name of updateDefaultBackground update. 2023-12-19 14:21:46 +03:00
levlam
b4ea9f8a18 Improve premiumGiftCodeInfo documentation. 2023-12-19 13:31:02 +03:00
levlam
855d6bf568 Support getPremiumGiveawayInfo for GiveawayWinners messages. 2023-12-19 13:07:41 +03:00
levlam
fd0135393c Process chats from stories.storyViewsList. 2023-12-19 13:04:21 +03:00
levlam
0b51acefe9 Add td_api::messagePremiumGiveawayWinners. 2023-12-18 21:03:11 +03:00
levlam
299b87c524 Add td_api::chatEventEmojiStatusChanged. 2023-12-18 16:38:40 +03:00
levlam
6b85c09d14 Add td_api::chatEventBackgroundChanged. 2023-12-18 16:30:52 +03:00
levlam
c03650a920 Add td_api::chatEventProfileAccentColorChanged. 2023-12-18 16:03:15 +03:00
levlam
6b0e161fa2 Combine td_api::chatEventAccentColorChanged and td_api::chatEventBackgroundCustomEmojiChanged. 2023-12-18 16:00:01 +03:00
levlam
9171588824 Add class PeerColor. 2023-12-18 15:51:11 +03:00
levlam
67422ffb47 Rename StoryPublicForward to PublicForward. 2023-12-18 14:59:50 +03:00
levlam
5725cf0388 Add td_api::storyAreaTypeMessage. 2023-12-18 14:40:11 +03:00
levlam
895150e649 Add optional currency information to messagePremiumGiftCode. 2023-12-18 13:30:21 +03:00
levlam
1393033fdf Add td_api::setChatProfileAccentColor. 2023-12-17 23:34:58 +03:00
levlam
d6423f60be Remove separate UpdateProfileColorQuery. 2023-12-17 23:12:03 +03:00
levlam
7ceccad807 Support profile color and custom emoji in chat. 2023-12-17 22:54:55 +03:00
levlam
16d0c3c61b Use combined updateChatAccentColors. 2023-12-16 11:49:26 +03:00
levlam
e4e76a7483 Add td_api::setMessageReactions for bots. 2023-12-15 14:51:26 +03:00
levlam
cc37a0c937 Add td_api::updateMessageReactions for bots. 2023-12-14 23:44:31 +03:00
levlam
00aff8f557 Add td_api::updateMessageReaction for bots. 2023-12-14 19:55:53 +03:00
levlam
58e8b7c97e Support creation of giveaways with public list of winners and additional prize description. 2023-12-05 13:45:32 +03:00
levlam
c6ce44815e Update layer to 169. 2023-12-05 12:30:12 +03:00
levlam
15132a398f Remove check in backgrounf parsing. 2023-12-22 16:48:16 +03:00
levlam
3e42417a0f Log results of message deletion. 2023-12-22 16:31:53 +03:00
levlam
5b8fff9643 Allow messagePremiumGiftCode.creator_id == null. 2023-12-22 12:51:58 +03:00
levlam
d60bb8da91 Add MessagesManager::update_replied_by_message_count. 2023-12-21 17:10:09 +03:00
levlam
bd1768954a Add and use MessagesManager::get_message_reply_to_random_id. 2023-12-20 23:25:54 +03:00
levlam
4dbcfce77d Randomly choose session among sessions with the same minimum query count. 2023-12-19 21:01:32 +03:00
levlam
15b8ad5c66 Add MediaArea::get_input_media_areas. 2023-12-18 14:24:07 +03:00
levlam
50f20c8a0c Assign message identifier in create_message_to_send. 2023-12-17 01:06:40 +03:00
levlam
08222894e9 Check link types in alphabetical order. 2023-12-16 23:45:45 +03:00
levlam
a815bd74a1 Pass some parameters as const reference. 2023-12-15 00:11:59 +03:00
levlam
53ee8caf37 Simplify QTS update processing. 2023-12-14 23:27:46 +03:00
levlam
0072ff225b Add static methods for processing of vector<ReactionType>. 2023-12-14 18:46:52 +03:00
levlam
0a53e5ad0e Set bot online timeout right after authorization. 2023-12-14 15:59:16 +03:00
levlam
2bf1dcd6eb Add source to get_channel_difference_if_needed. 2023-12-13 19:48:11 +03:00
levlam
542271a1fd Don't save get_id() to a used-once variable before switch. 2023-12-12 23:20:41 +03:00
levlam
dce778442c Allow 0 as giveaway_message_id in messagePremiumGiveawayCompleted. 2023-12-11 00:44:47 +03:00
levlam
c257615f9a Remove now unused function is_hidden_data_entity. 2023-12-10 13:37:32 +03:00
levlam
745c40855a Exclude installed sticker sets from searchStickerSets response. 2023-12-09 23:14:19 +03:00
levlam
d8eab25e82 Allow to use addChatMembers with one user in basic groups. 2023-12-08 14:30:01 +03:00
levlam
559cbe5de9 Always update premium-dependent options. 2023-12-08 12:57:13 +03:00
levlam
44844e1c19 Improve link preview options comparison. 2023-12-07 21:16:37 +03:00
levlam
f4f46c9a79 Don't try to process stories inside message content by bots. 2023-12-07 13:34:37 +03:00
levlam
a7c81ae21b Always extract web_page_url for bots. 2023-12-07 12:48:33 +03:00
levlam
b210e79f97 Save link preview URL if size of the media is fixed or message text is empty. 2023-12-06 12:57:49 +03:00
levlam
0f4e01bde3 Keep reply content if it has link preview options. 2023-12-06 12:28:37 +03:00
levlam
ef68428e01 Improve documentation of only_new_members. 2023-12-05 17:03:21 +03:00
levlam
4ac5708135 Remove redundant is_valid checks before adding an identifier as dependency. 2023-12-04 22:18:08 +03:00
levlam
f08b63268a Support more cases for min-users and min-channels. 2023-12-04 22:13:25 +03:00
levlam
85c8c19b7f Fix profileAccentColor documentation. 2023-12-04 19:15:15 +03:00