Add supergroupFullInfo.can_enable_paid_reaction.
This commit is contained in:
parent
908eb948f0
commit
4918ea4314
@ -1349,6 +1349,7 @@ supergroup id:int53 usernames:usernames date:int32 status:ChatMemberStatus membe
|
||||
//@linked_chat_id Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown
|
||||
//@slow_mode_delay Delay between consecutive sent messages for non-administrator supergroup members, in seconds
|
||||
//@slow_mode_delay_expires_in Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero
|
||||
//@can_enable_paid_reaction True, if paid reaction can be enabled in the channel chat; for channels only
|
||||
//@can_get_members True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers
|
||||
//@has_hidden_members True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers
|
||||
//@can_hide_members True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators
|
||||
@ -1373,7 +1374,7 @@ supergroup id:int53 usernames:usernames date:int32 status:ChatMemberStatus membe
|
||||
//@bot_commands List of commands of bots in the group
|
||||
//@upgraded_from_basic_group_id Identifier of the basic group from which supergroup was upgraded; 0 if none
|
||||
//@upgraded_from_max_message_id Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none
|
||||
supergroupFullInfo photo:chatPhoto description:string member_count:int32 administrator_count:int32 restricted_count:int32 banned_count:int32 linked_chat_id:int53 slow_mode_delay:int32 slow_mode_delay_expires_in:double can_get_members:Bool has_hidden_members:Bool can_hide_members:Bool can_set_sticker_set:Bool can_set_location:Bool can_get_statistics:Bool can_get_revenue_statistics:Bool can_get_star_revenue_statistics:Bool can_toggle_aggressive_anti_spam:Bool is_all_history_available:Bool can_have_sponsored_messages:Bool has_aggressive_anti_spam_enabled:Bool has_paid_media_allowed:Bool has_pinned_stories:Bool my_boost_count:int32 unrestrict_boost_count:int32 sticker_set_id:int64 custom_emoji_sticker_set_id:int64 location:chatLocation invite_link:chatInviteLink bot_commands:vector<botCommands> upgraded_from_basic_group_id:int53 upgraded_from_max_message_id:int53 = SupergroupFullInfo;
|
||||
supergroupFullInfo photo:chatPhoto description:string member_count:int32 administrator_count:int32 restricted_count:int32 banned_count:int32 linked_chat_id:int53 slow_mode_delay:int32 slow_mode_delay_expires_in:double can_enable_paid_reaction:Bool can_get_members:Bool has_hidden_members:Bool can_hide_members:Bool can_set_sticker_set:Bool can_set_location:Bool can_get_statistics:Bool can_get_revenue_statistics:Bool can_get_star_revenue_statistics:Bool can_toggle_aggressive_anti_spam:Bool is_all_history_available:Bool can_have_sponsored_messages:Bool has_aggressive_anti_spam_enabled:Bool has_paid_media_allowed:Bool has_pinned_stories:Bool my_boost_count:int32 unrestrict_boost_count:int32 sticker_set_id:int64 custom_emoji_sticker_set_id:int64 location:chatLocation invite_link:chatInviteLink bot_commands:vector<botCommands> upgraded_from_basic_group_id:int53 upgraded_from_max_message_id:int53 = SupergroupFullInfo;
|
||||
|
||||
|
||||
//@class SecretChatState @description Describes the current secret chat state
|
||||
|
@ -8885,15 +8885,15 @@ tl_object_ptr<td_api::supergroupFullInfo> ChatManager::get_supergroup_full_info_
|
||||
get_chat_photo_object(td_->file_manager_.get(), channel_full->photo), channel_full->description,
|
||||
channel_full->participant_count, channel_full->administrator_count, channel_full->restricted_count,
|
||||
channel_full->banned_count, DialogId(channel_full->linked_channel_id).get(), channel_full->slow_mode_delay,
|
||||
slow_mode_delay_expires_in, channel_full->can_get_participants, has_hidden_participants,
|
||||
can_hide_channel_participants(channel_id, channel_full).is_ok(), channel_full->can_set_sticker_set,
|
||||
channel_full->can_set_location, channel_full->can_view_statistics, channel_full->can_view_revenue,
|
||||
channel_full->can_view_star_revenue, can_toggle_channel_aggressive_anti_spam(channel_id, channel_full).is_ok(),
|
||||
channel_full->is_all_history_available, channel_full->can_have_sponsored_messages,
|
||||
channel_full->has_aggressive_anti_spam_enabled, channel_full->has_paid_media_allowed,
|
||||
channel_full->has_pinned_stories, channel_full->boost_count, channel_full->unrestrict_boost_count,
|
||||
channel_full->sticker_set_id.get(), channel_full->emoji_sticker_set_id.get(),
|
||||
channel_full->location.get_chat_location_object(),
|
||||
slow_mode_delay_expires_in, channel_full->has_paid_media_allowed, channel_full->can_get_participants,
|
||||
has_hidden_participants, can_hide_channel_participants(channel_id, channel_full).is_ok(),
|
||||
channel_full->can_set_sticker_set, channel_full->can_set_location, channel_full->can_view_statistics,
|
||||
channel_full->can_view_revenue, channel_full->can_view_star_revenue,
|
||||
can_toggle_channel_aggressive_anti_spam(channel_id, channel_full).is_ok(), channel_full->is_all_history_available,
|
||||
channel_full->can_have_sponsored_messages, channel_full->has_aggressive_anti_spam_enabled,
|
||||
channel_full->has_paid_media_allowed, channel_full->has_pinned_stories, channel_full->boost_count,
|
||||
channel_full->unrestrict_boost_count, channel_full->sticker_set_id.get(),
|
||||
channel_full->emoji_sticker_set_id.get(), channel_full->location.get_chat_location_object(),
|
||||
channel_full->invite_link.get_chat_invite_link_object(td_->user_manager_.get()), std::move(bot_commands),
|
||||
get_basic_group_id_object(channel_full->migrated_from_chat_id, "get_supergroup_full_info_object"),
|
||||
channel_full->migrated_from_max_message_id.get());
|
||||
|
Loading…
Reference in New Issue
Block a user