summaryrefslogtreecommitdiff
path: root/samples/receive-file/src/main.cpp
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2023-01-28 16:46:45 +0100
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2023-01-28 16:46:45 +0100
commit443b769670046340e266893e00f947c9ce37462f (patch)
tree8673409d751348e2f138c7b1218f1823bf65490e /samples/receive-file/src/main.cpp
parentab7ce1f7ae842c74f67f3576542aa68f5eff8ebb (diff)
Update samples
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;