public static class TdApi.BanChatMember extends TdApi.Function<TdApi.Ok>
Returns Ok
| 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; requires canRestrictMembers administrator right.
|
BanChatMember(long chatId,
TdApi.MessageSender memberId,
int bannedUntilDate,
boolean revokeMessages)
Creates a function, which bans a member in a chat; requires canRestrictMembers administrator right.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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()
TdApi.ObjectgetConstructor in class TdApi.Object