1 /* 2 This file is part of Telegram Desktop, 3 the official desktop application for the Telegram messaging service. 4 5 For license and copyright information please follow this link: 6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL 7 */ 8 #pragma once 9 MTP_bool(bool v)10inline MTPbool MTP_bool(bool v) { 11 return v ? MTP_boolTrue() : MTP_boolFalse(); 12 } 13 mtpIsTrue(const MTPBool & v)14inline bool mtpIsTrue(const MTPBool &v) { 15 return v.type() == mtpc_boolTrue; 16 } mtpIsFalse(const MTPBool & v)17inline bool mtpIsFalse(const MTPBool &v) { 18 return !mtpIsTrue(v); 19 } 20