Class PromoteChatMember.PromoteChatMemberBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.chat.admin.PromoteChatMember.PromoteChatMemberBuilder
-
- Enclosing class:
- PromoteChatMember
public static class PromoteChatMember.PromoteChatMemberBuilder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
errorHandler
public PromoteChatMember.PromoteChatMemberBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
callback
public PromoteChatMember.PromoteChatMemberBuilder callback(java.lang.Runnable callback)
-
chatId
public PromoteChatMember.PromoteChatMemberBuilder chatId(ChatId chatId)
-
userId
public PromoteChatMember.PromoteChatMemberBuilder userId(java.lang.Long userId)
-
canChangeInfo
public PromoteChatMember.PromoteChatMemberBuilder canChangeInfo(java.lang.Boolean canChangeInfo)
-
canPostMessages
public PromoteChatMember.PromoteChatMemberBuilder canPostMessages(java.lang.Boolean canPostMessages)
-
canEditMessages
public PromoteChatMember.PromoteChatMemberBuilder canEditMessages(java.lang.Boolean canEditMessages)
-
canDeleteMessages
public PromoteChatMember.PromoteChatMemberBuilder canDeleteMessages(java.lang.Boolean canDeleteMessages)
-
canInviteUsers
public PromoteChatMember.PromoteChatMemberBuilder canInviteUsers(java.lang.Boolean canInviteUsers)
-
canRestrictMembers
public PromoteChatMember.PromoteChatMemberBuilder canRestrictMembers(java.lang.Boolean canRestrictMembers)
-
canPinMessages
public PromoteChatMember.PromoteChatMemberBuilder canPinMessages(java.lang.Boolean canPinMessages)
-
canPromoteMembers
public PromoteChatMember.PromoteChatMemberBuilder canPromoteMembers(java.lang.Boolean canPromoteMembers)
-
build
public PromoteChatMember build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-