102 unsigned long long messageId()
const override;
108 unsigned long long fromId()
const;
144 QVariant
chatId()
const override;
148 QString
from()
const override;
184 QString
text()
const;
209 QList<QSharedPointer<TelegramImage>>
images()
const;
233 QSharedPointer<TelegramDocument>
documents()
const;
239 QSharedPointer<TelegramAudio>
audio()
const;
245 QSharedPointer<TelegramContact>
contact()
const;
247 unsigned long long updateId()
const override;
253 QSharedPointer<TelegramLocation>
location()
const;
bool isBot() const
isBot checks if the sender is a bot.
QString from() const override
from This virtual function should return the id of the user that sent this update to the bot.
QString languageCode() const
languageCode returns the sender's language code.
QString fullText() const
fullText Returns the text + caption value.
unsigned long long fromId() const
fromId returns the sender's ID.
const Type Document
Document This is the type of the documents.
const Type Contact
Contact This is type of the files.
QSharedPointer< TelegramLocation > location() const
location Returns the location object of the message.
const Type Location
Location This is the type of location data.
QString username() const
username returns the sender's username.
const Type Audio
Audio This is the type of audio files.
QString Type
Type This is a string value of the telegram message types.
unsigned long long messageId() const override
messageId returns the message ID.
QString firstName() const
firstName returns the sender's first name.
QString caption() const
caption Returns only the caption value.
qint64 date() const
date returns the date of the sent message.
const Type Image
Image This is the image type of the telegram.
const Type Text
Text This is the text type of the message.
unsigned long long updateId() const override
updateId This method returns the numeric id of the update.
bool isValid() const override
isValid returns true if the update is valid else false.
QSharedPointer< TelegramImage > image(QualitySelector behavior=AroundSize, int size=100000) const
Retrieve an image from the Telegram service with specified quality and size parameters.
QString chatFirstName() const
chatFirstName returns the first participant's first name in the chat.
QSharedPointer< TelegramContact > contact() const
contact Returns the contact data.
QString chatUsername() const
chatUsername returns the first participant's username in the chat.
QSharedPointer< TelegramDocument > documents() const
documents This method returns the contained document data.
QualitySelector
The QualitySelector enum This is the behavior of image and video selection.
@ BestOf
BestOf This selection tries to find the best image with a size limit. For example,...
@ Fast
Fast This selection returns the fastest image of the available ones (minimum size).
@ Best
Best This selection returns the best image of the available ones.
@ AroundSize
AroundSize This selection tries to find a file similar by size quality. For example,...
QString text() const
text returns text that contains this message object.
QList< QSharedPointer< TelegramImage > > images() const
images This function returns an array of available image qualities
QString chatLastName() const
chatLastName returns the first participant's last name in the chat.
QSharedPointer< TelegramAudio > audio() const
audio This method returns the contained audio data.
QVariant chatId() const override
chatId returns the chat ID.
QString lastName() const
lastName returns the sender's last name.
TelegramMsg()
TelegramMsg default constructor.
QString chatType() const
chatType returns the chat type.
bool contains(const Type &type)
contains This method returns true if the message contains the chosen data type.
iMessage()
iMessage default constructor.