- Enclosing class:
- TdApi
Changes the pinned state of a chat.
There can be up to
getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max")
pinned non-secret chats and the same
number of secret chats in the main/archive
chat list. The limit can be increased
with Telegram Premium.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier.Chat list in which to change the pinned state of the chat.static final intbooleanPass true to pin the chat; pass false to unpin it. -
Constructor Summary
ConstructorsConstructorDescriptionChanges the pinned state of a chat.ToggleChatIsPinned(TdApi.ChatList chatList, long chatId, boolean isPinned) Changes the pinned state of a chat.ToggleChatIsPinned(DataInput input) Changes the pinned state of a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toStringMethods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatList
Chat list in which to change the pinned state of the chat. -
chatId
public long chatIdChat identifier. -
isPinned
public boolean isPinnedPass true to pin the chat; pass false to unpin it. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ToggleChatIsPinned
public ToggleChatIsPinned()Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium. ReturnsOk -
ToggleChatIsPinned
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium. ReturnsOk- Parameters:
chatList- ChatList Chat list in which to change the pinned state of the chat.chatId- long Chat identifier.isPinned- boolean Pass true to pin the chat; pass false to unpin it.
-
ToggleChatIsPinned
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium. ReturnsOk- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-