summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.h
blob: b6b3bd62da57ae1789c11cd4c63d76492cad858b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

const char *getName(const TD::usernames *pName);

TD::object_ptr<TD::inputFileLocal> makeFile(const wchar_t *pwszFilename);

TD::object_ptr<TD::formattedText> formatBbcodes(const char *pszText);

TG_FILE_REQUEST::Type AutoDetectType(const wchar_t *pwszFilename);

CMStringA msg2id(const TD::message *pMsg);
CMStringA msg2id(TD::int53 chatId, TD::int53 msgId);
TD::int53 dbei2id(const DBEVENTINFO &dbei);