2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 05:55:08 +00:00

Start looking at download behaviour account option, and some renaming

This commit is contained in:
Arseniy Lartsev
2020-08-14 22:07:22 +02:00
parent e0c7c4c5ad
commit ff3f1c684b
10 changed files with 53 additions and 39 deletions

View File

@@ -930,9 +930,9 @@ std::string makeNoticeWithSender(const td::td_api::chat &chat, const TgMessageIn
return prefix + noticeText;
}
void showGenericFile(const td::td_api::chat &chat, const TgMessageInfo &message,
const std::string &filePath, const std::string &fileDescription,
TdAccountData &account)
void showGenericFileInline(const td::td_api::chat &chat, const TgMessageInfo &message,
const std::string &filePath, const std::string &fileDescription,
TdAccountData &account)
{
if (filePath.find('"') != std::string::npos) {
std::string notice = makeNoticeWithSender(chat, message, "Cannot show file: path contains quotes",