Commit Graph

11460 Commits

Author SHA1 Message Date
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
levlam
1a8999c590 Update owned star count when adding paid reactions. 2024-08-07 14:40:15 +03:00
levlam
43b2ffe27f tg_cli: remove commented code. 2024-08-07 14:32:12 +03:00
levlam
a4171a8cc7 Locally update owned star count after bying a paid media. 2024-08-07 14:30:45 +03:00
levlam
e2076d593b Send updateStarCount after receiving balance. 2024-08-07 13:24:11 +03:00
levlam
ec92603a70 Support updateOwnedStarCount in getCurrentState. 2024-08-07 13:08:09 +03:00
levlam
9daa9a0717 Cache owned star count. 2024-08-07 13:05:15 +03:00
levlam
6d26481186 Fix active live location expiration. 2024-08-06 00:35:03 +03:00
levlam
12e23e68bf Remove MessagesManager::on_load_active_live_location_messages_finished. 2024-08-06 00:15:07 +03:00
levlam
f5e0989f9e Save active live locations after successful delete. 2024-08-05 22:44:47 +03:00
levlam
68e7862169 Remove expired live locations. 2024-08-05 22:42:05 +03:00
levlam
6cfffa0dbc Remove td_api::getActiveLiveLocationMessages. 2024-08-05 21:51:57 +03:00
levlam
7f10402ba0 Add updateActiveLiveLocationMessages. 2024-08-05 21:45:21 +03:00
levlam
6fbcab1cec Return whether active live location was added. 2024-08-05 21:26:50 +03:00
levlam
9a695f08c0 Don't add yet unsent message to active live locations. 2024-08-05 15:08:18 +03:00
levlam
6b4389bb43 Add "subscription_star_count_max" option. 2024-08-05 14:50:14 +03:00
levlam
c37ec40977 Dismiss suggestedActionExtendStarSubscriptions when buying stars. 2024-08-05 14:00:57 +03:00
levlam
025fc4c558 Add td_api::suggestedActionExtendStarSubscriptions. 2024-08-05 13:46:56 +03:00
levlam
aaf9d40bea Add getStarSubscriptions.only_expiring. 2024-08-05 10:27:06 +03:00
levlam
176700325e Add starSubscriptions.required_star_count. 2024-08-05 10:21:22 +03:00
levlam
a4b557ea05 Add starSubscription.is_expiring. 2024-08-05 09:28:11 +03:00
levlam
191a742fa2 Add getStarTransactions.subscription_id. 2024-08-05 09:16:21 +03:00
levlam
2c8a304e5a Move can_get_added_reactions to messageReactions. 2024-08-04 21:57:57 +03:00
levlam
ff174f3bce Add td_api::removePendingPaidMessageReactions. 2024-08-04 12:53:14 +03:00
levlam
4dc42bc1bd Combine and delay addPaidMessageReaction queries. 2024-08-04 12:26:40 +03:00
levlam
7d93a305ad Update top reactors in MessageReactions::update_from. 2024-08-03 11:46:22 +03:00
levlam
8cd69d759d Add MessageReactor::fix_message_reactors. 2024-08-03 11:35:09 +03:00
levlam
d13d8a3176 Support sending of paid media by business bots. 2024-08-02 15:59:42 +03:00
levlam
e90d8621fb Add td_api::internalLinkTypeBuyStars. 2024-08-02 09:02:01 +03:00
levlam
076528a99f Update editChatInviteLink documentation. 2024-08-01 23:35:21 +03:00
levlam
9913849249 Add MessageReactions::add_my_paid_reaction. 2024-08-01 23:31:50 +03:00
levlam
049692dcb8 Add messageReactions.paid_reactors. 2024-08-01 23:19:31 +03:00
levlam
8044ed83b8 Add MessageReactor::add_dependencies. 2024-08-01 22:52:49 +03:00
levlam
4995abde1b Add td_api::paidReactor. 2024-07-30 09:25:57 +03:00
levlam
815d6fd0eb Add chatMemberStatusMember.member_until_date. 2024-07-30 09:25:10 +03:00
levlam
d3e95a5e85 Add td_api::reuseStarSubscription. 2024-07-29 23:14:41 +03:00
levlam
5303570c76 Add starSubscription.can_reuse. 2024-07-29 21:48:36 +03:00
levlam
7e09507987 Add chatInviteLinkSubscriptionInfo.can_reuse. 2024-07-29 21:41:27 +03:00
levlam
28f8ffd199 Add td_api::chatInviteLinkSubscriptionInfo. 2024-07-29 21:32:33 +03:00
levlam
3a8b58b483 Support chosen paid reaction. 2024-07-26 17:54:32 +03:00
levlam
98ed9f98c4 Add td_api::addPaidMessageReaction. 2024-07-26 17:50:18 +03:00
levlam
697c118c0d Add "paid_reaction_star_count_max" option. 2024-07-26 17:23:58 +03:00
levlam
4918ea4314 Add supergroupFullInfo.can_enable_paid_reaction. 2024-07-26 17:13:06 +03:00
levlam
908eb948f0 Add td_api::channelTransactionPurposeReaction. 2024-07-26 16:56:24 +03:00
levlam
62d1a85ab6 Add more checks for paid reactions. 2024-07-26 16:39:30 +03:00
levlam
c55f946133 Return paid reaction in getMessageAvailableReactions. 2024-07-26 15:42:00 +03:00
levlam
c583fb2fcf Allow to enable paid reaction in channels. 2024-07-26 15:31:09 +03:00
levlam
1438e1bd88 Add td_api::reactionTypePaid. 2024-07-26 15:11:41 +03:00
levlam
3ba783158f Add td_api::editStarSubscription. 2024-07-25 23:13:00 +03:00
levlam
597805c951 Add td_api::getStarSubscriptions. 2024-07-25 22:53:45 +03:00
levlam
070675b4cd Add td_api::starSubscription. 2024-07-25 20:06:29 +03:00
levlam
9315b118e0 Add td_api::channelTransactionPurposeJoin. 2024-07-25 18:23:24 +03:00
levlam
83be2c698c Add td_api::telegramPaymentPurposeJoinChat. 2024-07-25 18:09:09 +03:00
levlam
d20a3f1552 Document that subscription links can't be edited. 2024-07-23 20:35:52 +03:00
levlam
3db3f1a4b3 Add createChatInviteLink.subscription_pricing. 2024-07-23 17:51:25 +03:00
levlam
33492e0b01 Add subscription information to chatInviteLinkInfo. 2024-07-23 17:17:36 +03:00
levlam
7ed407ec14 Add chatInviteLink.pricing. 2024-07-23 17:03:59 +03:00
levlam
1a8757aa6e Add td_api::starSubscriptionPricing. 2024-07-23 14:19:18 +03:00
levlam
86a9eb8486 Update layer to 186. 2024-07-23 14:14:34 +03:00
levlam
8324189c3a Simplify calls to get_message_object. 2024-08-12 12:43:36 +03:00
levlam
791915296a Fix source check. 2024-08-11 11:56:01 +03:00
levlam
c06ca5f287 Add expect_join_request parameter. 2024-08-10 22:20:15 +03:00
levlam
67a418a330 Remove unused user_id parameters from on_update_user_*. 2024-08-09 14:56:23 +03:00
levlam
c4f8f04482 Add clang warnings. 2024-08-08 19:38:51 +03:00
levlam
42d07bd074 Return linkPreviewTypeAlbum for all supported sites. 2024-08-07 12:08:49 +03:00
levlam
7f364a7a18 Hide Instant View for album link previews from Instagram and Twitter. 2024-08-07 11:47:37 +03:00
levlam
168a9dfc77 Improve linkPreviewTypeSticker documentation. 2024-08-07 10:02:40 +03:00
levlam
81dc2e242b Call on_get_channel_error in UpdatePersonalChannelQuery. 2024-08-06 16:00:36 +03:00
levlam
b490b83e3e Fix setPersonalChat. 2024-08-06 15:34:52 +03:00
levlam
5807434c8c Schedule next processing of viewed messages only if the user is online. 2024-08-06 12:30:37 +03:00
levlam
8a0e13f440 Immediately reget paid media in newly viewed messages. 2024-08-06 12:20:25 +03:00