Skip to content

GramIO API Reference / gramio/dist / PromoteChatMemberParams

Interface: PromoteChatMemberParams

Defined in: @gramio/types/out/params.d.ts:1787

Params object for promoteChatMember method

Properties

PropertyTypeDescriptionDefined in
can_change_info?booleanPass True if the administrator can change chat title, photo and other settings@gramio/types/out/params.d.ts:1823
can_delete_messages?booleanPass True if the administrator can delete messages of other users@gramio/types/out/params.d.ts:1807
can_delete_stories?booleanPass True if the administrator can delete stories posted by other users@gramio/types/out/params.d.ts:1839
can_edit_messages?booleanPass True if the administrator can edit messages of other users and can pin messages; for channels only@gramio/types/out/params.d.ts:1847
can_edit_stories?booleanPass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive@gramio/types/out/params.d.ts:1835
can_invite_users?booleanPass True if the administrator can invite new users to the chat@gramio/types/out/params.d.ts:1827
can_manage_chat?booleanPass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.@gramio/types/out/params.d.ts:1803
can_manage_direct_messages?booleanPass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only@gramio/types/out/params.d.ts:1859
can_manage_tags?booleanPass True if the administrator can edit the tags of regular members; for groups and supergroups only@gramio/types/out/params.d.ts:1863
can_manage_topics?booleanPass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only@gramio/types/out/params.d.ts:1855
can_manage_video_chats?booleanPass True if the administrator can manage video chats@gramio/types/out/params.d.ts:1811
can_pin_messages?booleanPass True if the administrator can pin messages; for supergroups only@gramio/types/out/params.d.ts:1851
can_post_messages?booleanPass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only@gramio/types/out/params.d.ts:1843
can_post_stories?booleanPass True if the administrator can post stories to the chat@gramio/types/out/params.d.ts:1831
can_promote_members?booleanPass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)@gramio/types/out/params.d.ts:1819
can_restrict_members?booleanPass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators@gramio/types/out/params.d.ts:1815
chat_idstring | numberUnique identifier for the target chat or username of the target channel (in the format @channelusername)@gramio/types/out/params.d.ts:1791
is_anonymous?booleanPass True if the administrator's presence in the chat is hidden@gramio/types/out/params.d.ts:1799
user_idnumberUnique identifier of the target user@gramio/types/out/params.d.ts:1795