From 443b769670046340e266893e00f947c9ce37462f Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sat, 28 Jan 2023 16:46:45 +0100 Subject: Update samples --- samples/receive-file/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/receive-file/src/main.cpp') 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; -- cgit v1.2.3