Class PromoteChatMember

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<PromoteChatMember,Boolean>
io.github.natanimn.telebof.requests.service.PromoteChatMember

public class PromoteChatMember extends AbstractBaseRequest<PromoteChatMember,Boolean>
PromoteChatMember class. Returns True on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • PromoteChatMember

      public PromoteChatMember(Object chatId, long userId, Api api)
      Required
      Parameters:
      chatId - chat id
      userId - user id
      api - api
  • Method Details

    • isAnonymous

      public PromoteChatMember isAnonymous(boolean isAnonymous)
      Optional
      Parameters:
      isAnonymous - Pass True if the administrator's presence in the chat is hidden
      Returns:
      PromoteChatMember
    • canManageChat

      public PromoteChatMember canManageChat(boolean canManageChat)
      Optional
      Parameters:
      canManageChat - Pass 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.
      Returns:
      PromoteChatMember
    • canPostMessages

      public PromoteChatMember canPostMessages(boolean canPostMessages)
      Optional
      Parameters:
      canPostMessages - Pass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
      Returns:
      PromoteChatMember
    • canEditMessages

      public PromoteChatMember canEditMessages(boolean canEditMessages)
      Optional
      Parameters:
      canEditMessages - Pass True if the administrator can edit messages of other users and can pin messages; for channels only
      Returns:
      PromoteChatMember
    • canDeleteMessages

      public PromoteChatMember canDeleteMessages(boolean canDeleteMessages)
      Optional
      Parameters:
      canDeleteMessages - Pass True if the administrator can delete messages of other users
      Returns:
      PromoteChatMember
    • canManageVideoChats

      public PromoteChatMember canManageVideoChats(boolean canManageVideoChats)
      Optional
      Parameters:
      canManageVideoChats - Pass True if the administrator can manage video chats
      Returns:
      PromoteChatMember
    • canRestrictMembers

      public PromoteChatMember canRestrictMembers(boolean canRestrictMembers)
      Optional
      Parameters:
      canRestrictMembers - Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics
      Returns:
      PromoteChatMember
    • canPromoteMembers

      public PromoteChatMember canPromoteMembers(boolean canPromoteMembers)
      Optional
      Parameters:
      canPromoteMembers - Pass 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)
      Returns:
      PromoteChatMember
    • canChangeInfo

      public PromoteChatMember canChangeInfo(boolean canChangeInfo)
      Optional
      Parameters:
      canChangeInfo - Pass True if the administrator can change chat title, photo and other settings
      Returns:
      PromoteChatMember
    • canInviteUsers

      public PromoteChatMember canInviteUsers(boolean canInviteUsers)
      Optional
      Parameters:
      canInviteUsers - Pass True if the administrator can invite new users to the chat
      Returns:
      PromoteChatMember
    • canPinMessages

      public PromoteChatMember canPinMessages(boolean canPinMessages)
      Optional
      Parameters:
      canPinMessages - Pass True if the administrator can pin messages; for supergroups only
      Returns:
      PromoteChatMember
    • canManageTopics

      public PromoteChatMember canManageTopics(boolean canManageTopics)
      Optional
      Parameters:
      canManageTopics - Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
      Returns:
      PromoteChatMember
    • canPostStories

      public PromoteChatMember canPostStories(boolean canPostStories)
      Optional
      Parameters:
      canPostStories - Pass True if the administrator can post stories to the chat
      Returns:
      PromoteChatMember
    • canEditStories

      public PromoteChatMember canEditStories(boolean canEditStories)
      Optional
      Parameters:
      canEditStories - Pass 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
      Returns:
      PromoteChatMember
    • canDeleteStories

      public PromoteChatMember canDeleteStories(boolean canDeleteStories)
      Optional
      Parameters:
      canDeleteStories - Pass True if the administrator can delete stories posted by other users
      Returns:
      PromoteChatMember
    • canManageDirectMessages

      public PromoteChatMember canManageDirectMessages(boolean canManageDirectMessages)
      Optional
      Parameters:
      canManageDirectMessages - Pass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only
      Returns:
      PromoteChatMember