tgbot-cpp
Loading...
Searching...
No Matches
LoginUrl.h
Go to the documentation of this file.
1#ifndef TGBOT_LOGINURL_H
2#define TGBOT_LOGINURL_H
3
4#include <memory>
5#include <string>
6
7namespace TgBot {
8
19class LoginUrl {
20public:
21 typedef std::shared_ptr<LoginUrl> Ptr;
22
30 std::string url;
31
35 std::string forwardText;
36
44 std::string botUsername;
45
50};
51}
52
53#endif //TGBOT_LOGINURL_H
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
Definition LoginUrl.h:19
std::shared_ptr< LoginUrl > Ptr
Definition LoginUrl.h:21
std::string botUsername
Optional. Username of a bot, which will be used for user authorization. See https://core....
Definition LoginUrl.h:44
std::string url
An HTTP URL to be opened with user authorization data added to the query string when the button is pr...
Definition LoginUrl.h:30
std::string forwardText
Optional. New text of the button in forwarded messages.
Definition LoginUrl.h:35
bool requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
Definition LoginUrl.h:49
Definition Api.h:39