/
diev
/
stelegramdesktop-tdesktop
Обзор
Документация
Войти
/
diev
/
stelegramdesktop-tdesktop
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
Telegram/SourceFiles/data/data_peer_bot_command.h
27 строк
662 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 */ #pragma once namespace Data { struct BotCommand final { QString command; QString description; inline bool operator==(const BotCommand &other) const { return (command == other.command) && (description == other.description); } inline bool operator!=(const BotCommand &other) const { return !(*this == other); } }; [[nodiscard]] BotCommand BotCommandFromTL(const MTPBotCommand &result); } // namespace Data