Commit Graph

13388 Commits

Author SHA1 Message Date
levlam
072cba1396 Improve MessageReactor::is_valid(). 2024-08-14 04:41:48 +03:00
levlam
f02af59f4c Improve MessageReactions::toggle_paid_message_reaction_is_anonymous. 2024-08-14 03:55:45 +03:00
levlam
ede7a331f4 Ignore bot payload for paid media transactions in Test DC. 2024-08-14 01:33:22 +03:00
levlam
190aeb0849 Add td_api::editChatSubscriptionInviteLink. 2024-08-14 00:15:49 +03:00
levlam
8cefcc6ac7 Add separate createChatSubscriptionInviteLink. 2024-08-13 23:56:59 +03:00
levlam
357e59a781 Always reget app config if ignore_sensitive_content_restrictions changes. 2024-08-13 21:24:59 +03:00
levlam
0ed35e76aa Add message.has_sensitive_content. 2024-08-13 21:14:41 +03:00
levlam
843dff97a6 Add supergroup.has_sensitive_content. 2024-08-13 21:08:08 +03:00
levlam
f3f6f084d9 Ignore "sensitive" restriction for the whole chat. 2024-08-13 21:01:01 +03:00
levlam
4101db16a7 Add get_restriction_reason helper function. 2024-08-13 20:27:02 +03:00
levlam
4fbe7741dc tg_cli: support td_api::topChatCategoryWebAppBots. 2024-08-13 17:22:13 +03:00
levlam
b4d4d054de Log if there is unused paid media. 2024-08-13 16:31:10 +03:00
levlam
d142f39672 Support local channel posts sent by other channels. 2024-08-13 00:35:56 +03:00
levlam
0531816c6f Don't add author signature to posts on behalf of channel. 2024-08-13 00:29:01 +03:00
levlam
ef26678162 Support sending channel posts on behalf of other channels. 2024-08-13 00:24:45 +03:00
levlam
22e87be2fc Support getChatAvailableMessageSenders for channel chats. 2024-08-12 23:19:43 +03:00
levlam
fabb80b3cd Don't try to load active live locations for bots. 2024-08-12 21:38:21 +03:00
levlam
2eab9fc897 Add td_api::starTransactionPartnerBusiness. 2024-08-12 21:25:29 +03:00
levlam
5f659c9b8c Support td_api::botTransactionPurposePaidMedia. 2024-08-12 21:12:54 +03:00
levlam
fbe56eb0a5 Add get_paid_media_objects lambda helper. 2024-08-12 20:08:42 +03:00
levlam
db7b18b6f2 Add BotTransactionPurpose. 2024-08-12 19:53:30 +03:00
levlam
503dde513a Add options with Telegram Star to USD conversion rates. 2024-08-12 19:37:49 +03:00
levlam
3e4aa8e98e Add chatInviteLink.expired_member_count. 2024-08-12 19:28:28 +03:00
levlam
c51648459e Add getChatInviteLinkMembers.only_with_expired_subscription. 2024-08-12 19:19:36 +03:00
levlam
e579dd6823 Add botInfo.privacy_policy_url. 2024-08-12 15:35:12 +03:00
levlam
f9dcb217d0 Add td_api::togglePaidMessageReactionIsAnonymous. 2024-08-12 15:05:21 +03:00
levlam
7644f1c50e Handle paid reaction in searchSavedMessages. 2024-08-12 14:46:29 +03:00
levlam
411c93d9f8 Check for reactionTypePaid in getMessageAddedReactions. 2024-08-12 14:35:38 +03:00
levlam
8347f4e5b2 Support sending anonymous paid reactions. 2024-08-12 14:15:47 +03:00
levlam
6b16461547 Support background type for links to backgrounds with files. 2024-08-09 16:49:31 +03:00
levlam
31249fa0c2 Add linkPreviewTypeBackground.background_type. 2024-08-09 14:36:43 +03:00
levlam
9ec8b37493 Add starSubscription.invite_hash. 2024-08-09 14:05:09 +03:00
levlam
fbdec88dd1 Add internalLinkTypeBuyStars.purpose. 2024-08-09 13:59:25 +03:00
levlam
f6c181bea8 Support animation, photo and video in sponsored messages. 2024-08-09 13:45:08 +03:00
levlam
2aa1da2ee6 Ignore show_message_sender for scheduled messages. 2024-08-08 22:08:38 +03:00
levlam
2548bbbdc5 Allow to add local messages from users to channels with shown senders. 2024-08-08 21:23:11 +03:00
levlam
f9af5c8252 Add author_signature to messages with public sender. 2024-08-08 21:20:16 +03:00
levlam
5a99625f90 Add td_api::chatEventShowMessageSenderToggled. 2024-08-08 21:07:35 +03:00
levlam
934548dffe Fix MessageReactions::get_message_reactions_object, 2024-08-07 17:41:54 +03:00
levlam
7daa876d99 Fix ChatReactions::is_allowed_reaction_type. 2024-08-07 17:35:00 +03:00
levlam
1bbed2c5bc Fix paid reaction in get_sorted_available_reactions() for channels with disabled paid reaction if it is already set on the message. 2024-08-07 17:27:25 +03:00
levlam
3918e131e3 Add and use ChatReactions::ignore_non_paid_reaction_types. 2024-08-07 17:16:05 +03:00
levlam
56ef439ff8 Add and use MessageReactions::get_non_paid_reaction_count(). 2024-08-07 16:57:32 +03:00
levlam
6450f5a531 Add and use MessageReactions::are_empty(). 2024-08-07 16:48:06 +03:00
levlam
6c9f103264 Add is_owned_star_count_inited_. 2024-08-07 16:37:00 +03:00
levlam
f86cd1aaa0 tg_cli: don't allow $ as delimiter. 2024-08-07 16:28:58 +03:00
levlam
799e6010b4 Allow to change show_message_sender. 2024-08-07 16:16:55 +03:00
levlam
cc21a58abf Add and use get_channel_show_message_sender. 2024-08-07 16:01:33 +03:00
levlam
b041bf0e97 Add supergroup.show_message_sender. 2024-08-07 15:55:59 +03:00
levlam
2c1ec31420 Improve broadcast checks. 2024-08-07 15:23:25 +03:00