tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

Problem in using BotCommand

Open SMorettini opened this issue 4 years ago • 2 comments

I builded the library and imported in my project. Everything is working fine. I'm currently sending messages, pictures and other feature. When I tried to add a BotCommand using the code in the sample I cant build anymore the project and I have these errors.

error: ‘BotCommand’ was not declared in this scope

error: ‘BotCommand’ is not a class, namespace, or enumeration

What I should do to use BotCommand?

SMorettini avatar Apr 17 '21 11:04 SMorettini

I think BotCommand is added in telegram bot api > 5.0. I guess this feature is not implemented in this library yet.

naveenvhegde avatar Jul 18 '21 03:07 naveenvhegde

The BotCommand is now added to the library

llnulldisk avatar Sep 14 '22 18:09 llnulldisk