|
TDLib
|
Inherits td::td_api::Function.
Public Types | |
| using | ReturnType = object_ptr< messages > |
| Typedef for the type returned by the function. | |
Public Member Functions | |
| forwardMessages () | |
| forwardMessages (int53 chat_id_, int53 message_thread_id_, int53 from_chat_id_, array< int53 > &&message_ids_, object_ptr< messageSendOptions > &&options_, bool send_copy_, bool remove_caption_, bool only_preview_) | |
| std::int32_t | get_id () const final |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Member Functions inherited from td::TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Public Attributes | |
| int53 | chat_id_ |
| Identifier of the chat to which to forward messages. | |
| int53 | message_thread_id_ |
| If not 0, a message thread identifier in which the message will be sent; for forum threads only. | |
| int53 | from_chat_id_ |
| Identifier of the chat from which to forward messages. | |
| array< int53 > | message_ids_ |
| Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. | |
| object_ptr< messageSendOptions > | options_ |
| Options to be used to send the messages; pass null to use default options. | |
| bool | send_copy_ |
| Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local. | |
| bool | remove_caption_ |
| Pass true to remove media captions of message copies. Ignored if send_copy is false. | |
| bool | only_preview_ |
| Pass true to get fake messages instead of actually forwarding them. | |
Static Public Attributes | |
| static const std::int32_t | ID = -1054441908 |
| Identifier uniquely determining a type of the object. | |
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message.
Returns object_ptr<Messages>.
| td::td_api::forwardMessages::forwardMessages | ( | ) |
Default constructor for a function, which forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message.
Returns object_ptr<Messages>.
| td::td_api::forwardMessages::forwardMessages | ( | int53 | chat_id_, |
| int53 | message_thread_id_, | ||
| int53 | from_chat_id_, | ||
| array< int53 > && | message_ids_, | ||
| object_ptr< messageSendOptions > && | options_, | ||
| bool | send_copy_, | ||
| bool | remove_caption_, | ||
| bool | only_preview_ | ||
| ) |
Creates a function, which forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message.
Returns object_ptr<Messages>.
| [in] | chat_id_ | Identifier of the chat to which to forward messages. |
| [in] | message_thread_id_ | If not 0, a message thread identifier in which the message will be sent; for forum threads only. |
| [in] | from_chat_id_ | Identifier of the chat from which to forward messages. |
| [in] | message_ids_ | Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. |
| [in] | options_ | Options to be used to send the messages; pass null to use default options. |
| [in] | send_copy_ | Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local. |
| [in] | remove_caption_ | Pass true to remove media captions of message copies. Ignored if send_copy is false. |
| [in] | only_preview_ | Pass true to get fake messages instead of actually forwarding them. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.