SetChatMemberStatus constructor

const SetChatMemberStatus({
  1. required int chatId,
  2. required MessageSender memberId,
  3. required ChatMemberStatus status,
})

Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed

Implementation

const SetChatMemberStatus({
  required this.chatId,
  required this.memberId,
  required this.status,
});