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

Arguments for Api::createChatSubscriptionInviteLink. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId { }
 Unique identifier for the target channel chat or username of the target channel in the format @username.
std::int32_t subscriptionPeriod { }
 The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).
std::int32_t subscriptionPrice { }
 The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000.
std::string name = ""
 Invite link name; 0-32 characters.

Detailed Description

Arguments for Api::createChatSubscriptionInviteLink.

Definition at line 14940 of file Types.h.

Member Data Documentation

◆ chatId

std::variant<std::int64_t, std::string> TgBot::CreateChatSubscriptionInviteLinkArgs::chatId { }

Unique identifier for the target channel chat or username of the target channel in the format @username.

Definition at line 14945 of file Types.h.

◆ name

std::string TgBot::CreateChatSubscriptionInviteLinkArgs::name = ""

Invite link name; 0-32 characters.

Definition at line 14962 of file Types.h.

◆ subscriptionPeriod

std::int32_t TgBot::CreateChatSubscriptionInviteLinkArgs::subscriptionPeriod { }

The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).

Definition at line 14951 of file Types.h.

◆ subscriptionPrice

std::int32_t TgBot::CreateChatSubscriptionInviteLinkArgs::subscriptionPrice { }

The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000.

Definition at line 14957 of file Types.h.


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