public static class TdApi.BanChatMember extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
int |
bannedUntilDate
Point in time (Unix timestamp) when the user will be unbanned; 0 if never.
|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.MessageSender |
memberId
Member identifier.
|
boolean |
revokeMessages
Pass true to delete all messages in the chat for the user that is being removed.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public TdApi.MessageSender memberId
public int bannedUntilDate
public boolean revokeMessages
public static final int CONSTRUCTOR
public BanChatMember()
Returns Ok
public BanChatMember(long chatId, TdApi.MessageSender memberId, int bannedUntilDate, boolean revokeMessages)
Returns Ok
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.public int getConstructor()
getConstructor
in class TdApi.Function