tgbot-cpp
Loading...
Searching...
No Matches
TgBot::DirectMessagePriceChanged Struct Reference

Describes a service message about a change in the price of direct messages sent to a channel chat. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<DirectMessagePriceChanged>

Public Attributes

bool areDirectMessagesEnabled { }
 True, if direct messages are enabled for the channel chat; False otherwise.
std::optional< std::int32_t > directMessageStarCount { }
 Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.

Detailed Description

Describes a service message about a change in the price of direct messages sent to a channel chat.

Definition at line 3284 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 3285 of file Types.h.

Member Data Documentation

◆ areDirectMessagesEnabled

bool TgBot::DirectMessagePriceChanged::areDirectMessagesEnabled { }

True, if direct messages are enabled for the channel chat; False otherwise.

Definition at line 3290 of file Types.h.

◆ directMessageStarCount

std::optional<std::int32_t> TgBot::DirectMessagePriceChanged::directMessageStarCount { }

Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.

Definition at line 3297 of file Types.h.


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