#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| int53 | chat_id_ |
| | Identifier of the chat.
|
| |
| int53 | message_id_ |
| | Identifier of the new pinned message.
|
| |
| bool | disable_notification_ |
| | Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats.
|
| |
| bool | only_for_self_ |
| | Pass true to pin the message only for self; private chats only.
|
| |
|
| static const std::int32_t | ID = 2034719663 |
| | Identifier uniquely determining a type of the object.
|
| |
Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned.
Returns object_ptr<Ok>.
Definition at line 117995 of file td_api.h.
◆ ReturnType
Typedef for the type returned by the function.
Definition at line 118037 of file td_api.h.
◆ pinChatMessage() [1/2]
| td::td_api::pinChatMessage::pinChatMessage |
( |
| ) |
|
Default constructor for a function, which pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned.
Returns object_ptr<Ok>.
◆ pinChatMessage() [2/2]
| td::td_api::pinChatMessage::pinChatMessage |
( |
int53 |
chat_id_, |
|
|
int53 |
message_id_, |
|
|
bool |
disable_notification_, |
|
|
bool |
only_for_self_ |
|
) |
| |
Creates a function, which pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned.
Returns object_ptr<Ok>.
- Parameters
-
| [in] | chat_id_ | Identifier of the chat. |
| [in] | message_id_ | Identifier of the new pinned message. |
| [in] | disable_notification_ | Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats. |
| [in] | only_for_self_ | Pass true to pin the message only for self; private chats only. |
◆ store()
| void td::td_api::pinChatMessage::store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ chat_id_
| int53 td::td_api::pinChatMessage::chat_id_ |
◆ disable_notification_
| bool td::td_api::pinChatMessage::disable_notification_ |
Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats.
Definition at line 118010 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::pinChatMessage::ID = 2034719663 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 118034 of file td_api.h.
◆ message_id_
| int53 td::td_api::pinChatMessage::message_id_ |
Identifier of the new pinned message.
Definition at line 118008 of file td_api.h.
◆ only_for_self_
| bool td::td_api::pinChatMessage::only_for_self_ |
Pass true to pin the message only for self; private chats only.
Definition at line 118012 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h