yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Private Attributes | List of all members
yatbcpp::ChatMember Class Reference

#include "ChatMember.h"

Collaboration diagram for yatbcpp::ChatMember:
Collaboration graph
[legend]

Public Member Functions

 ChatMember (User user, chatmember_status status)
 
 ChatMember (const ChatMember &ChatMember)
 
void setUntil_date (const std::optional< std::int32_t > &until_date)
 
void setCan_be_edited (const std::optional< bool > &can_be_edited)
 
void setCan_change_info (const std::optional< bool > &can_change_info)
 
void setCan_post_messages (const std::optional< bool > &can_post_messages)
 
void setCan_edit_messages (const std::optional< bool > &can_edit_messages)
 
void setCan_delete_messages (const std::optional< bool > &can_delete_messages)
 
void setCan_invite_users (const std::optional< bool > &can_invite_users)
 
void setCan_restrict_members (const std::optional< bool > &can_restrict_members)
 
void setCan_pin_messages (const std::optional< bool > &can_pin_messages)
 
void setCan_promote_members (const std::optional< bool > &can_promote_members)
 
void setCan_send_messages (const std::optional< bool > &can_send_messages)
 
void setCan_send_media_messages (const std::optional< bool > &can_send_media_messages)
 
void setCan_send_other_messages (const std::optional< bool > &can_send_other_messages)
 
void setCan_add_web_page_previews (const std::optional< bool > &can_add_web_page_previews)
 
const UsergetUser () const
 
const chatmember_statusgetStatus () const
 
const std::optional< std::int32_t > & getUntil_date () const
 
const std::optional< bool > & getCan_be_edited () const
 
const std::optional< bool > & getCan_change_info () const
 
const std::optional< bool > & getCan_post_messages () const
 
const std::optional< bool > & getCan_edit_messages () const
 
const std::optional< bool > & getCan_delete_messages () const
 
const std::optional< bool > & getCan_invite_users () const
 
const std::optional< bool > & getCan_restrict_members () const
 
const std::optional< bool > & getCan_pin_messages () const
 
const std::optional< bool > & getCan_promote_members () const
 
const std::optional< bool > & getCan_send_messages () const
 
const std::optional< bool > & getCan_send_media_messages () const
 
const std::optional< bool > & getCan_send_other_messages () const
 
const std::optional< bool > & getCan_add_web_page_previews () const
 

Private Attributes

User user
 
chatmember_status status
 
std::optional< std::int32_t > until_date
 
std::optional< bool > can_be_edited
 
std::optional< bool > can_change_info
 
std::optional< bool > can_post_messages
 
std::optional< bool > can_edit_messages
 
std::optional< bool > can_delete_messages
 
std::optional< bool > can_invite_users
 
std::optional< bool > can_restrict_members
 
std::optional< bool > can_pin_messages
 
std::optional< bool > can_promote_members
 
std::optional< bool > can_send_messages
 
std::optional< bool > can_send_media_messages
 
std::optional< bool > can_send_other_messages
 
std::optional< bool > can_add_web_page_previews
 

Detailed Description

See also https://core.telegram.org/bots/api#chatmember

Definition at line 11 of file ChatMember.h.

Constructor & Destructor Documentation

◆ ChatMember() [1/2]

ChatMember::ChatMember ( User  user,
chatmember_status  status 
)

Definition at line 14 of file ChatMember.cc.

◆ ChatMember() [2/2]

ChatMember::ChatMember ( const ChatMember ChatMember)

Definition at line 20 of file ChatMember.cc.

Member Function Documentation

◆ getCan_add_web_page_previews()

const optional< bool > & ChatMember::getCan_add_web_page_previews ( ) const

Definition at line 165 of file ChatMember.cc.

◆ getCan_be_edited()

const optional< bool > & ChatMember::getCan_be_edited ( ) const

Definition at line 117 of file ChatMember.cc.

◆ getCan_change_info()

const optional< bool > & ChatMember::getCan_change_info ( ) const

Definition at line 121 of file ChatMember.cc.

◆ getCan_delete_messages()

const optional< bool > & ChatMember::getCan_delete_messages ( ) const

Definition at line 133 of file ChatMember.cc.

◆ getCan_edit_messages()

const optional< bool > & ChatMember::getCan_edit_messages ( ) const

Definition at line 129 of file ChatMember.cc.

◆ getCan_invite_users()

const optional< bool > & ChatMember::getCan_invite_users ( ) const

Definition at line 137 of file ChatMember.cc.

◆ getCan_pin_messages()

const optional< bool > & ChatMember::getCan_pin_messages ( ) const

Definition at line 145 of file ChatMember.cc.

◆ getCan_post_messages()

const optional< bool > & ChatMember::getCan_post_messages ( ) const

Definition at line 125 of file ChatMember.cc.

◆ getCan_promote_members()

const optional< bool > & ChatMember::getCan_promote_members ( ) const

Definition at line 149 of file ChatMember.cc.

◆ getCan_restrict_members()

const optional< bool > & ChatMember::getCan_restrict_members ( ) const

Definition at line 141 of file ChatMember.cc.

◆ getCan_send_media_messages()

const optional< bool > & ChatMember::getCan_send_media_messages ( ) const

Definition at line 157 of file ChatMember.cc.

◆ getCan_send_messages()

const optional< bool > & ChatMember::getCan_send_messages ( ) const

Definition at line 153 of file ChatMember.cc.

◆ getCan_send_other_messages()

const optional< bool > & ChatMember::getCan_send_other_messages ( ) const

Definition at line 161 of file ChatMember.cc.

◆ getStatus()

const chatmember_status & ChatMember::getStatus ( ) const

Definition at line 109 of file ChatMember.cc.

◆ getUntil_date()

const optional< int32_t > & ChatMember::getUntil_date ( ) const

Definition at line 113 of file ChatMember.cc.

◆ getUser()

const User & ChatMember::getUser ( ) const

Definition at line 105 of file ChatMember.cc.

◆ setCan_add_web_page_previews()

void ChatMember::setCan_add_web_page_previews ( const std::optional< bool > &  can_add_web_page_previews)

Definition at line 97 of file ChatMember.cc.

◆ setCan_be_edited()

void ChatMember::setCan_be_edited ( const std::optional< bool > &  can_be_edited)

Definition at line 49 of file ChatMember.cc.

◆ setCan_change_info()

void ChatMember::setCan_change_info ( const std::optional< bool > &  can_change_info)

Definition at line 53 of file ChatMember.cc.

◆ setCan_delete_messages()

void ChatMember::setCan_delete_messages ( const std::optional< bool > &  can_delete_messages)

Definition at line 65 of file ChatMember.cc.

◆ setCan_edit_messages()

void ChatMember::setCan_edit_messages ( const std::optional< bool > &  can_edit_messages)

Definition at line 61 of file ChatMember.cc.

◆ setCan_invite_users()

void ChatMember::setCan_invite_users ( const std::optional< bool > &  can_invite_users)

Definition at line 69 of file ChatMember.cc.

◆ setCan_pin_messages()

void ChatMember::setCan_pin_messages ( const std::optional< bool > &  can_pin_messages)

Definition at line 77 of file ChatMember.cc.

◆ setCan_post_messages()

void ChatMember::setCan_post_messages ( const std::optional< bool > &  can_post_messages)

Definition at line 57 of file ChatMember.cc.

◆ setCan_promote_members()

void ChatMember::setCan_promote_members ( const std::optional< bool > &  can_promote_members)

Definition at line 81 of file ChatMember.cc.

◆ setCan_restrict_members()

void ChatMember::setCan_restrict_members ( const std::optional< bool > &  can_restrict_members)

Definition at line 73 of file ChatMember.cc.

◆ setCan_send_media_messages()

void ChatMember::setCan_send_media_messages ( const std::optional< bool > &  can_send_media_messages)

Definition at line 89 of file ChatMember.cc.

◆ setCan_send_messages()

void ChatMember::setCan_send_messages ( const std::optional< bool > &  can_send_messages)

Definition at line 85 of file ChatMember.cc.

◆ setCan_send_other_messages()

void ChatMember::setCan_send_other_messages ( const std::optional< bool > &  can_send_other_messages)

Definition at line 93 of file ChatMember.cc.

◆ setUntil_date()

void ChatMember::setUntil_date ( const std::optional< std::int32_t > &  until_date)

Definition at line 45 of file ChatMember.cc.

Member Data Documentation

◆ can_add_web_page_previews

std::optional<bool> yatbcpp::ChatMember::can_add_web_page_previews
private

Definition at line 93 of file ChatMember.h.

◆ can_be_edited

std::optional<bool> yatbcpp::ChatMember::can_be_edited
private

Definition at line 81 of file ChatMember.h.

◆ can_change_info

std::optional<bool> yatbcpp::ChatMember::can_change_info
private

Definition at line 82 of file ChatMember.h.

◆ can_delete_messages

std::optional<bool> yatbcpp::ChatMember::can_delete_messages
private

Definition at line 85 of file ChatMember.h.

◆ can_edit_messages

std::optional<bool> yatbcpp::ChatMember::can_edit_messages
private

Definition at line 84 of file ChatMember.h.

◆ can_invite_users

std::optional<bool> yatbcpp::ChatMember::can_invite_users
private

Definition at line 86 of file ChatMember.h.

◆ can_pin_messages

std::optional<bool> yatbcpp::ChatMember::can_pin_messages
private

Definition at line 88 of file ChatMember.h.

◆ can_post_messages

std::optional<bool> yatbcpp::ChatMember::can_post_messages
private

Definition at line 83 of file ChatMember.h.

◆ can_promote_members

std::optional<bool> yatbcpp::ChatMember::can_promote_members
private

Definition at line 89 of file ChatMember.h.

◆ can_restrict_members

std::optional<bool> yatbcpp::ChatMember::can_restrict_members
private

Definition at line 87 of file ChatMember.h.

◆ can_send_media_messages

std::optional<bool> yatbcpp::ChatMember::can_send_media_messages
private

Definition at line 91 of file ChatMember.h.

◆ can_send_messages

std::optional<bool> yatbcpp::ChatMember::can_send_messages
private

Definition at line 90 of file ChatMember.h.

◆ can_send_other_messages

std::optional<bool> yatbcpp::ChatMember::can_send_other_messages
private

Definition at line 92 of file ChatMember.h.

◆ status

chatmember_status yatbcpp::ChatMember::status
private

Definition at line 79 of file ChatMember.h.

◆ until_date

std::optional<std::int32_t> yatbcpp::ChatMember::until_date
private

Definition at line 80 of file ChatMember.h.

◆ user

User yatbcpp::ChatMember::user
private

Definition at line 78 of file ChatMember.h.


The documentation for this class was generated from the following files: