promoteAuthorToFullAdmin method

Future<bool> promoteAuthorToFullAdmin()

Promotes the author to full administrator with all permissions.

This is a convenience method that promotes the message author to administrator with all available permissions enabled.

Example:

await ctx.promoteAuthorToFullAdmin();

Returns True on success.

Implementation

Future<bool> promoteAuthorToFullAdmin() async {
  return promoteAuthor(
    canManageChat: true,
    canPostMessages: true,
    canEditMessages: true,
    canDeleteMessages: true,
    canManageVideoChats: true,
    canRestrictMembers: true,
    canPromoteMembers: true,
    canChangeInfo: true,
    canInviteUsers: true,
    canPinMessages: true,
    canManageTopics: true,
    canPostStories: true,
    canEditStories: true,
    canDeleteStories: true,
  );
}