58 const Type Image =
"photo";
63 const Type Document =
"document";
68 const Type Contact =
"contact";
73 const Type Location =
"location";
78 const Type Audio =
"audio";
88 unsigned long long messageId()
const override;
94 unsigned long long fromId()
const;
106 QString firstName()
const;
112 QString lastName()
const;
118 QString username()
const;
124 QString languageCode()
const;
130 QVariant chatId()
const override;
132 bool isValid()
const override;
134 QString from()
const override;
140 QString chatFirstName()
const;
146 QString chatLastName()
const;
152 QString chatUsername()
const;
158 QString chatType()
const;
170 QString text()
const;
176 QString fullText()
const;
182 QString caption()
const;
189 bool contains(
const Type& type);
195 QList<QSharedPointer<TelegramImage>> images()
const;
213 QSharedPointer<TelegramImage> image(
QualitySelector behavior = AroundSize,
int size = 100000)
const;
219 QSharedPointer<TelegramDocument> documents()
const;
225 QSharedPointer<TelegramAudio> audio()
const;
231 QSharedPointer<TelegramContact> contact()
const;
233 unsigned long long updateId()
const override;
239 QSharedPointer<TelegramLocation> location()
const;