17 return rawJson().contains(type);
90 return rawJson().value(
"update_id").toInteger();
94 return rawJson().contains(
"update_id");
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
unsigned long long updateId() const override
updateId returns the update ID.
QJsonObject inlineQueryUpdate() const
inlineQueryUpdate returns the inline query update.
const Type ChosenInlineResultUpdate
const Type PreCheckuptAueryUpdate
bool isValid() const override
isValid return true if the message is valid else false.
QSharedPointer< TelegramInlineKeyBoardCallBack > callbackQueryUpdate() const
callbackQueryUpdate returns the callback query update.
QJsonObject preCheckuptAueryUpdate() const
preCheckuptAueryUpdate returns the pre-checkout query update.
const Type CallbackQueryUpdate
QJsonObject shippingQueryUpdate() const
shippingQueryUpdate returns the shipping query update.
QSharedPointer< TelegramMsg > editedMessage() const
editedMessage returns the edited message update.
QVariant chatId() const override
from This virtual function should return name of the chat when sent this message to bot.
QJsonObject editedChannelPost() const
editedChannelPost returns the edited channel post update.
QString Type
Type just string value of the telegram messages types.
QJsonObject chosenInlineResult() const
chosenInlineResult returns the chosen inline result update.
const Type EditedMessageUpdate
QJsonObject chatMemberUpdate() const
chatMemberUpdate returns the chat member update.
QJsonObject myChatMemberUpdate() const
myChatMemberUpdate returns the my chat member update.
const Type InlineQueryUpdate
const Type MyChatMemberUpdate
const Type ChannelPostUpdate
bool contains(const Type &type) const
contains This method returns true if the message contains choosed data type.
const Type ChatJoinRequestUpdate
QJsonObject channelPost() const
channelPost returns the channel post update.
const Type ShippingQueryUpdate
QJsonObject pollAnswerUpdate() const
pollAnswerUpdate returns the poll answer update.
const Type PollAnswerUpdate
QJsonObject chatJoinRequestUpdate() const
chatJoinRequestUpdate returns the chat join request update.
QString from() const override
from This virtual function should return name of the user that sent this message to bot.
QJsonObject pollUpdate() const
pollUpdate returns the poll update.
QSharedPointer< TelegramMsg > message() const
message returns the array of the updates messages.
const Type EditedChannelPostUpdate
const Type ChatMemberUpdate