Skip to content

Commit 443b769

Browse files
committed
Update samples
1 parent ab7ce1f commit 443b769

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

samples/receive-file/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ if (CURL_FOUND)
1616
add_definitions(-DHAVE_CURL)
1717
endif()
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})

samples/receive-file/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)