tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::VideoChatEnded Struct Reference

This object represents a service message about a video chat ended in the chat. https://core.telegram.org/bots/api#videochatended. More...

#include <VideoChatEnded.hpp>

Public Member Functions

 VideoChatEnded ()=default
 
 VideoChatEnded (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

std::int32_t duration {}
 Video chat duration in seconds. More...
 

Detailed Description

This object represents a service message about a video chat ended in the chat. https://core.telegram.org/bots/api#videochatended.

Definition at line 7 of file VideoChatEnded.hpp.

Constructor & Destructor Documentation

◆ VideoChatEnded() [1/2]

tgbotxx::VideoChatEnded::VideoChatEnded ( )
default

◆ VideoChatEnded() [2/2]

tgbotxx::VideoChatEnded::VideoChatEnded ( const nl::json &  json)
inlineexplicit

Definition at line 9 of file VideoChatEnded.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::VideoChatEnded::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 25 of file VideoChatEnded.hpp.

◆ toJson()

nl::json tgbotxx::VideoChatEnded::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file VideoChatEnded.hpp.

Member Data Documentation

◆ duration

std::int32_t tgbotxx::VideoChatEnded::duration {}

Video chat duration in seconds.

Definition at line 14 of file VideoChatEnded.hpp.


The documentation for this struct was generated from the following file: