summaryrefslogtreecommitdiff
path: root/samples/receive-file/src/main.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2023-01-29 18:17:12 +0300
committerGitHub <noreply@github.com>2023-01-29 18:17:12 +0300
commit4356f747596a42dd04766f9c7234fd1aded2eeda (patch)
tree8cea4cad5a8bc15e8213193743111f41a73e1461 /samples/receive-file/src/main.cpp
parentab7ce1f7ae842c74f67f3576542aa68f5eff8ebb (diff)
parenta8defacf2ba9bc3029b16af48a539553f873866b (diff)
Merge pull request #257 from llnulldisk/master
Fix timeout issues (#251)
Diffstat (limited to 'samples/receive-file/src/main.cpp')
-rw-r--r--samples/receive-file/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/receive-file/src/main.cpp b/samples/receive-file/src/main.cpp
index bbfaadf..7a0e8ff 100644
--- a/samples/receive-file/src/main.cpp
+++ b/samples/receive-file/src/main.cpp
@@ -21,7 +21,7 @@ int main() {
printf("User wrote %s\n", message->text.c_str());
File::Ptr file = bot.getApi().getFile(message->document->fileId);
- std::string fileContent = bot.getApi().downloadFile(file->filePath);
+ string fileContent = bot.getApi().downloadFile(file->filePath);
if (StringTools::startsWith(message->text, "/start")) {
return;