31 const Type MessageUpdate =
"message";
32 const Type EditedMessageUpdate =
"edited_message";
33 const Type ChannelPostUpdate =
"channel_post";
34 const Type EditedChannelPostUpdate =
"edited_channel_post";
35 const Type InlineQueryUpdate =
"inline_query";
36 const Type ChosenInlineResultUpdate =
"chosen_inline_result";
37 const Type CallbackQueryUpdate =
"callback_query";
38 const Type ShippingQueryUpdate =
"shipping_query";
39 const Type PreCheckuptAueryUpdate =
"pre_checkout_query";
40 const Type PollUpdate =
"poll";
41 const Type PollAnswerUpdate =
"poll_answer";
42 const Type MyChatMemberUpdate =
"my_chat_member";
43 const Type ChatMemberUpdate =
"chat_member";
44 const Type ChatJoinRequestUpdate =
"chat_join_request";
51 bool contains(
const Type& type)
const;
57 QSharedPointer<TelegramMsg> message()
const;
63 QSharedPointer<TelegramMsg> editedMessage()
const;
69 QJsonObject channelPost()
const;
75 QJsonObject editedChannelPost()
const;
81 QJsonObject inlineQueryUpdate()
const;
87 QJsonObject chosenInlineResult()
const;
93 QSharedPointer<TelegramInlineKeyBoardCallBack> callbackQueryUpdate()
const;
99 QJsonObject shippingQueryUpdate()
const;
105 QJsonObject preCheckuptAueryUpdate()
const;
111 QJsonObject pollUpdate()
const;
117 QJsonObject pollAnswerUpdate()
const;
123 QJsonObject myChatMemberUpdate()
const;
129 QJsonObject chatMemberUpdate()
const;
135 QJsonObject chatJoinRequestUpdate()
const;
141 unsigned long long updateId()
const override;
144 bool isValid()
const override;
145 QString from()
const override;
146 QVariant chatId()
const override;