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

Arguments for Api::pinChatMessage. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId { }
 Unique identifier for the target chat or username of the target channel in the format @username.
std::int32_t messageId { }
 Identifier of a message to pin.
std::string businessConnectionId = ""
 Unique identifier of the business connection on behalf of which the message will be pinned.
bool disableNotification = false
 Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.

Detailed Description

Arguments for Api::pinChatMessage.

Definition at line 16928 of file Types.h.

Member Data Documentation

◆ businessConnectionId

std::string TgBot::PinChatMessageArgs::businessConnectionId = ""

Unique identifier of the business connection on behalf of which the message will be pinned.

Definition at line 16944 of file Types.h.

◆ chatId

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

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

Definition at line 16933 of file Types.h.

◆ disableNotification

bool TgBot::PinChatMessageArgs::disableNotification = false

Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.

Definition at line 16951 of file Types.h.

◆ messageId

std::int32_t TgBot::PinChatMessageArgs::messageId { }

Identifier of a message to pin.

Definition at line 16938 of file Types.h.


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