|
tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
|
#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
Public Types | |
| using | ReturnType = object_ptr< ok > |
| Typedef for the type returned by the function. | |
Public Member Functions | |
| sendMessageViewMetrics () | |
| sendMessageViewMetrics (int53 chat_id_, int53 message_id_, int32 time_in_view_ms_, int32 active_time_in_view_ms_, int32 height_to_viewport_ratio_per_mille_, int32 seen_range_ratio_per_mille_) | |
| 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_ |
| Chat identifier. | |
| int53 | message_id_ |
| The identifier of the message being viewed. | |
| int32 | time_in_view_ms_ |
| The amount of time the message was seen by at least 1 pixel; in milliseconds. | |
| int32 | active_time_in_view_ms_ |
| The amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds. | |
| int32 | height_to_viewport_ratio_per_mille_ |
| The ratio of the post height to the viewport height in 1/1000 fractions. | |
| int32 | seen_range_ratio_per_mille_ |
| The ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000. | |
Static Public Attributes | |
| static const std::int32_t | ID = 698012087 |
| Identifier uniquely determining a type of the object. | |
Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.
Returns object_ptr<Ok>.
| td::td_api::sendMessageViewMetrics::sendMessageViewMetrics | ( | ) |
Default constructor for a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.
Returns object_ptr<Ok>.
| td::td_api::sendMessageViewMetrics::sendMessageViewMetrics | ( | int53 | chat_id_, |
| int53 | message_id_, | ||
| int32 | time_in_view_ms_, | ||
| int32 | active_time_in_view_ms_, | ||
| int32 | height_to_viewport_ratio_per_mille_, | ||
| int32 | seen_range_ratio_per_mille_ | ||
| ) |
Creates a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.
Returns object_ptr<Ok>.
| [in] | chat_id_ | Chat identifier. |
| [in] | message_id_ | The identifier of the message being viewed. |
| [in] | time_in_view_ms_ | The amount of time the message was seen by at least 1 pixel; in milliseconds. |
| [in] | active_time_in_view_ms_ | The amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds. |
| [in] | height_to_viewport_ratio_per_mille_ | The ratio of the post height to the viewport height in 1/1000 fractions. |
| [in] | seen_range_ratio_per_mille_ | The ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000. |
|
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.
| int32 td::td_api::sendMessageViewMetrics::active_time_in_view_ms_ |
| int53 td::td_api::sendMessageViewMetrics::chat_id_ |
| int32 td::td_api::sendMessageViewMetrics::height_to_viewport_ratio_per_mille_ |
|
static |
| int53 td::td_api::sendMessageViewMetrics::message_id_ |
| int32 td::td_api::sendMessageViewMetrics::seen_range_ratio_per_mille_ |
| int32 td::td_api::sendMessageViewMetrics::time_in_view_ms_ |