File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ if (CURL_FOUND)
1616 add_definitions (-DHAVE_CURL )
1717endif ()
1818
19- add_executable (file src/main.cpp )
19+ add_executable (receive- file src/main.cpp )
2020
21- target_link_libraries (file /usr/local/lib/libTgBot.a ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} ${CURL_LIBRARIES} )
21+ target_link_libraries (receive- file /usr/local/lib/libTgBot.a ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} ${CURL_LIBRARIES} )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ int main() {
2121 printf (" User wrote %s\n " , message->text .c_str ());
2222
2323 File::Ptr file = bot.getApi ().getFile (message->document ->fileId );
24- std:: string fileContent = bot.getApi ().downloadFile (file->filePath );
24+ string fileContent = bot.getApi ().downloadFile (file->filePath );
2525
2626 if (StringTools::startsWith (message->text , " /start" )) {
2727 return ;
You can’t perform that action at this time.
0 commit comments