tgbotxx 1.1.6.9
Telegram Bot C++ Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PaidSubscriptionBot Class Reference

#include <PaidSubscriptionBot.hpp>

Inheritance diagram for PaidSubscriptionBot:
tgbotxx::Bot

Public Member Functions

 PaidSubscriptionBot (const std::string &token, const std::string &paymentProviderToken)
 
- Public Member Functions inherited from tgbotxx::Bot
 Bot (const std::string &token)
 Constructs a new Bot object.
 
 ~Bot ()
 
void start ()
 Start the long polling.
 
void stop ()
 Stop the long polling.
 
virtual void onNonCommandMessage (const Ptr< Message > &message)
 Called when a non-command message is received of any kind - text, photo, sticker, etc.
 
virtual void onUnknownCommand (const Ptr< Message > &message)
 Called when an unknown command is received (messages with leading '/' char).
 
virtual void onEditedMessage (const Ptr< Message > &editedMessage)
 Called when a new version of a message that is known to the bot and was edited.
 
virtual void onMessageReactionUpdated (const Ptr< MessageReactionUpdated > &messageReaction)
 Called when a reaction to a message was changed by a user.
 
virtual void onMessageReactionCountUpdated (const Ptr< MessageReactionCountUpdated > &messageReactionCount)
 Called when reactions to a message with anonymous reactions were changed.
 
virtual void onInlineQuery (const Ptr< InlineQuery > &inlineQuery)
 Called when a new incoming inline query is received.
 
virtual void onChosenInlineResult (const Ptr< ChosenInlineResult > &chosenInlineResult)
 Called when the result of an inline query that was chosen by a user and sent to their chat partner.
 
virtual void onCallbackQuery (const Ptr< CallbackQuery > &callbackQuery)
 Called when a new incoming callback query is received.
 
virtual void onShippingQuery (const Ptr< ShippingQuery > &shippingQuery)
 Called when a new incoming shipping query is received.
 
virtual void onPoll (const Ptr< Poll > &poll)
 Called when a new poll state is received.
 
virtual void onPollAnswer (const Ptr< PollAnswer > &pollAnswer)
 Called when a user changed their answer in a non-anonymous poll.
 
virtual void onMyChatMember (const Ptr< ChatMemberUpdated > &myChatMemberUpdated)
 Called when the bot's chat member status was updated in a chat.
 
virtual void onChatMember (const Ptr< ChatMemberUpdated > &chatMemberUpdated)
 Called when a chat member's status was updated in a chat.
 
virtual void onChatJoinRequest (const Ptr< ChatJoinRequest > &chatJoinRequest)
 Called when a request to join the chat has been sent.
 
virtual void onChatBoostUpdated (const Ptr< ChatBoostUpdated > &chatBoostUpdated)
 Called when a chat boost was added or changed.
 
virtual void onChatBoostRemoved (const Ptr< ChatBoostRemoved > &chatBoostRemoved)
 Called when a boost was removed from a chat.
 

Additional Inherited Members

- Protected Member Functions inherited from tgbotxx::Bot
const Ptr< Api > & getApi () const noexcept
 Returns Api object.
 
const Ptr< Api > & api () const noexcept
 Returns Api object.
 
bool isRunning () const noexcept
 Returns true if the Bot long polling is currently running.
 

Detailed Description

Definition at line 4 of file PaidSubscriptionBot.hpp.

Constructor & Destructor Documentation

◆ PaidSubscriptionBot()

PaidSubscriptionBot::PaidSubscriptionBot ( const std::string &  token,
const std::string &  paymentProviderToken 
)

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