Package org.drinkless.tdlib
Class TdApi.BanChatMember
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.BanChatMember
-
- Enclosing class:
- TdApi
public static class TdApi.BanChatMember extends TdApi.Function
Bans a member in a chat. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description intbannedUntilDatePoint in time (Unix timestamp) when the user will be unbanned; 0 if never.longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.MessageSendermemberIdMember identifier.booleanrevokeMessagesPass true to delete all messages in the chat for the user that is being removed.
-
Constructor Summary
Constructors Constructor Description BanChatMember()Default constructor for a function, which bans a member in a chat.BanChatMember(long chatId, TdApi.MessageSender memberId, int bannedUntilDate, boolean revokeMessages)Creates a function, which bans a member in a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
memberId
public TdApi.MessageSender memberId
Member identifier.
-
bannedUntilDate
public int bannedUntilDate
Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned.
-
revokeMessages
public boolean revokeMessages
Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BanChatMember
public BanChatMember()
Default constructor for a function, which bans a member in a chat. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first.Returns
Ok
-
BanChatMember
public BanChatMember(long chatId, TdApi.MessageSender memberId, int bannedUntilDate, boolean revokeMessages)Creates a function, which bans a member in a chat. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first.Returns
Ok- Parameters:
chatId- Chat identifier.memberId- Member identifier.bannedUntilDate- Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned.revokeMessages- Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-