Class PromoteChatMember
- java.lang.Object
-
- com.jtelegram.api.requests.framework.AbstractTelegramRequest
-
- com.jtelegram.api.requests.framework.UpdateTelegramRequest
-
- com.jtelegram.api.requests.message.framework.req.UpdatableChatRequest
-
- com.jtelegram.api.requests.message.framework.req.UserAdminChatRequest
-
- com.jtelegram.api.requests.chat.admin.PromoteChatMember
-
- All Implemented Interfaces:
TelegramRequest
public class PromoteChatMember extends UserAdminChatRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PromoteChatMember.PromoteChatMemberBuilder
-
Field Summary
-
Fields inherited from class com.jtelegram.api.requests.framework.UpdateTelegramRequest
callback
-
Fields inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
errorHandler, gson
-
Fields inherited from interface com.jtelegram.api.requests.framework.TelegramRequest
JSON_MEDIA_TYPE
-
-
Constructor Summary
Constructors Constructor Description PromoteChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId, java.lang.Boolean canChangeInfo, java.lang.Boolean canPostMessages, java.lang.Boolean canEditMessages, java.lang.Boolean canDeleteMessages, java.lang.Boolean canInviteUsers, java.lang.Boolean canRestrictMembers, java.lang.Boolean canPinMessages, java.lang.Boolean canPromoteMembers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PromoteChatMember.PromoteChatMemberBuilder
builder()
java.lang.Boolean
getCanChangeInfo()
java.lang.Boolean
getCanDeleteMessages()
java.lang.Boolean
getCanEditMessages()
java.lang.Boolean
getCanInviteUsers()
java.lang.Boolean
getCanPinMessages()
java.lang.Boolean
getCanPostMessages()
java.lang.Boolean
getCanPromoteMembers()
java.lang.Boolean
getCanRestrictMembers()
java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.requests.message.framework.req.UserAdminChatRequest
getUserId, isValid
-
Methods inherited from class com.jtelegram.api.requests.message.framework.req.UpdatableChatRequest
getChatId
-
Methods inherited from class com.jtelegram.api.requests.framework.UpdateTelegramRequest
handleResponse, setCallback
-
Methods inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
canEqual, equals, getBody, getEndPoint, handleError, handleException, hashCode, serialize, setErrorHandler, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.jtelegram.api.requests.framework.TelegramRequest
build
-
-
-
-
Constructor Detail
-
PromoteChatMember
public PromoteChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId, java.lang.Boolean canChangeInfo, java.lang.Boolean canPostMessages, java.lang.Boolean canEditMessages, java.lang.Boolean canDeleteMessages, java.lang.Boolean canInviteUsers, java.lang.Boolean canRestrictMembers, java.lang.Boolean canPinMessages, java.lang.Boolean canPromoteMembers)
-
-
Method Detail
-
builder
public static PromoteChatMember.PromoteChatMemberBuilder builder()
-
getCanChangeInfo
public java.lang.Boolean getCanChangeInfo()
-
getCanPostMessages
public java.lang.Boolean getCanPostMessages()
-
getCanEditMessages
public java.lang.Boolean getCanEditMessages()
-
getCanDeleteMessages
public java.lang.Boolean getCanDeleteMessages()
-
getCanInviteUsers
public java.lang.Boolean getCanInviteUsers()
-
getCanRestrictMembers
public java.lang.Boolean getCanRestrictMembers()
-
getCanPinMessages
public java.lang.Boolean getCanPinMessages()
-
getCanPromoteMembers
public java.lang.Boolean getCanPromoteMembers()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-