/
diev
/
stelegramdesktop-tdesktop
Обзор
Документация
Войти
/
diev
/
stelegramdesktop-tdesktop
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
Telegram/SourceFiles/data/data_peer_bot_command.cpp
21 строка
549 B
23rd
Replaced use of raw MTP* bot commands with new transitional classes.
14 июн 2022, 17:51
14 июн 2022, 17:51
13146e9
Код
Авторство
О чём код?
/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "data/data_peer_bot_command.h" namespace Data { BotCommand BotCommandFromTL(const MTPBotCommand &result) { return result.match([](const MTPDbotCommand &data) { return BotCommand { .command = qs(data.vcommand().v), .description = qs(data.vdescription().v), }; }); } } // namespace Data