tgbot-cpp
tgbot-cpp copied to clipboard
std::string TgBot::Chat::inviteLink is empty
Hello,
I try to get the invite link of a public group but inviteLink is empty.
According to documentation:
Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat.
Then I use getChat to get the invite link.
Bot bot(token);
std::String inviteLink = bot.getApi().getChat(message->chat->id)->inviteLink;
but inviteLink is an empty string. How do I can get the invite link? Is this the right method?
Thanks!
I rather think that this is due to the Telegram servers. I tried it once too with my own API and the same result as you experience.