tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. https://core.telegram.org/bots/api#proximityalerttriggered. More...
#include <ProximityAlertTriggered.hpp>
Public Member Functions | |
ProximityAlertTriggered ()=default | |
ProximityAlertTriggered (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
Ptr< User > | traveler |
User that triggered the alert. More... | |
Ptr< User > | watcher |
User that set the alert. More... | |
std::int32_t | distance {} |
The distance between the users. More... | |
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. https://core.telegram.org/bots/api#proximityalerttriggered.
Definition at line 8 of file ProximityAlertTriggered.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file ProximityAlertTriggered.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 35 of file ProximityAlertTriggered.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 26 of file ProximityAlertTriggered.hpp.
std::int32_t tgbotxx::ProximityAlertTriggered::distance {} |
The distance between the users.
Definition at line 21 of file ProximityAlertTriggered.hpp.
User that triggered the alert.
Definition at line 15 of file ProximityAlertTriggered.hpp.
User that set the alert.
Definition at line 18 of file ProximityAlertTriggered.hpp.