tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::CopyTextButton Struct Reference

This object represents an inline keyboard button that copies specified text to the clipboard. https://core.telegram.org/bots/api#copytextbutton. More...

#include <CopyTextButton.hpp>

Public Member Functions

 CopyTextButton ()=default
 
 CopyTextButton (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

std::string text
 The text to be copied to the clipboard; 1-256 characters.
 

Detailed Description

This object represents an inline keyboard button that copies specified text to the clipboard. https://core.telegram.org/bots/api#copytextbutton.

Definition at line 7 of file CopyTextButton.hpp.

Constructor & Destructor Documentation

◆ CopyTextButton() [1/2]

tgbotxx::CopyTextButton::CopyTextButton ( )
default

◆ CopyTextButton() [2/2]

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

Definition at line 9 of file CopyTextButton.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 25 of file CopyTextButton.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 19 of file CopyTextButton.hpp.

Member Data Documentation

◆ text

std::string tgbotxx::CopyTextButton::text

The text to be copied to the clipboard; 1-256 characters.

Definition at line 14 of file CopyTextButton.hpp.


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