We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code
#include <stdio.h> #include <tgbot/tgbot.h> int main() { TgBot::Bot bot("PLACE YOUR TOKEN HERE"); bot.getEvents().onCommand("start", [&bot](TgBot::Message::Ptr message) { bot.getApi().sendMessage(message->chat->id, "Hi!"); }); bot.getEvents().onAnyMessage([&bot](TgBot::Message::Ptr message) { printf("User wrote %s\n", message->text.c_str()); if (StringTools::startsWith(message->text, "/start")) { return; } bot.getApi().sendMessage(message->chat->id, "Your message is: " + message->text); }); try { printf("Bot username: %s\n", bot.getApi().getMe()->username.c_str()); TgBot::TgLongPoll longPoll(bot); while (true) { printf("Long poll started\n"); longPoll.start(); } } catch (TgBot::TgException& e) { printf("error: %s\n", e.what()); } return 0; }
errors
Severity Code Description Project File Line Suppression State Details Error LNK2001 unresolved external symbol "public: __cdecl TgBot::TgLongPoll::TgLongPoll(class TgBot::Bot const &,int,int,class std::shared_ptr<class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > const &)" (??0TgLongPoll@TgBot@@QEAA@AEBVBot@1@HHAEBV?$shared_ptr@V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@std@@@Z) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "public: __cdecl TgBot::Bot::Bot(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class TgBot::HttpClient const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Bot@TgBot@@QEAA@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBVHttpClient@1@AEBV23@@Z) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "public: void __cdecl TgBot::TgLongPoll::start(void)" (?start@TgLongPoll@TgBot@@QEAAXXZ) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "public: class std::shared_ptr<class TgBot::User> __cdecl TgBot::Api::getMe(void)const " (?getMe@Api@TgBot@@QEBA?AV?$shared_ptr@VUser@TgBot@@@std@@XZ) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "public: class std::shared_ptr<class TgBot::Message> __cdecl TgBot::Api::sendMessage(class boost::variant<__int64,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,int,class std::shared_ptr<class TgBot::GenericReply>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,class std::vector<class std::shared_ptr<class TgBot::MessageEntity>,class std::allocator<class std::shared_ptr<class TgBot::MessageEntity> > > const &,bool,bool,int)const " (?sendMessage@Api@TgBot@@QEBA?AV?$shared_ptr@VMessage@TgBot@@@std@@V?$variant@_JV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@_NHV?$shared_ptr@VGenericReply@TgBot@@@4@12AEBV?$vector@V?$shared_ptr@VMessageEntity@TgBot@@@std@@V?$allocator@V?$shared_ptr@VMessageEntity@TgBot@@@std@@@2@@4@22H@Z) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "private: static class TgBot::HttpClient & __cdecl TgBot::Bot::_getDefaultHttpClient(void)" (?_getDefaultHttpClient@Bot@TgBot@@CAAEAVHttpClient@2@XZ) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK2001 unresolved external symbol "bool __cdecl StringTools::startsWith(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?startsWith@StringTools@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\tgbot.obj 1 Error LNK1120 7 unresolved externals tgbot sample C:\Users\Administrator\source\repos\tgbot sample\tgbot sample\x64\Release\tgbot sample.exe 1
am i have to find tgbot.lib?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
code
errors
am i have to find tgbot.lib?
The text was updated successfully, but these errors were encountered: