Source code for hydrogram.raw.base.update

#  Hydrogram - Telegram MTProto API Client Library for Python
#  Copyright (C) 2023-present Hydrogram <https://hydrogram.org>
#
#  This file is part of Hydrogram.
#
#  Hydrogram is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Lesser General Public License as published
#  by the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  Hydrogram is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public License
#  along with Hydrogram.  If not, see <http://www.gnu.org/licenses/>.

# # # # # # # # # # # # # # # # # # # # # # # #
#               !!! WARNING !!!               #
#          This is a generated file!          #
# All changes made in this file will be lost! #
# # # # # # # # # # # # # # # # # # # # # # # #

from typing import Union
from hydrogram import raw
from hydrogram.raw.core import TLObject

Update = Union["raw.types.UpdateAttachMenuBots", "raw.types.UpdateAutoSaveSettings", "raw.types.UpdateBotBusinessConnect", "raw.types.UpdateBotCallbackQuery", "raw.types.UpdateBotChatBoost", "raw.types.UpdateBotChatInviteRequester", "raw.types.UpdateBotCommands", "raw.types.UpdateBotDeleteBusinessMessage", "raw.types.UpdateBotEditBusinessMessage", "raw.types.UpdateBotInlineQuery", "raw.types.UpdateBotInlineSend", "raw.types.UpdateBotMenuButton", "raw.types.UpdateBotMessageReaction", "raw.types.UpdateBotMessageReactions", "raw.types.UpdateBotNewBusinessMessage", "raw.types.UpdateBotPrecheckoutQuery", "raw.types.UpdateBotShippingQuery", "raw.types.UpdateBotStopped", "raw.types.UpdateBotWebhookJSON", "raw.types.UpdateBotWebhookJSONQuery", "raw.types.UpdateBroadcastRevenueTransactions", "raw.types.UpdateChannel", "raw.types.UpdateChannelAvailableMessages", "raw.types.UpdateChannelMessageForwards", "raw.types.UpdateChannelMessageViews", "raw.types.UpdateChannelParticipant", "raw.types.UpdateChannelPinnedTopic", "raw.types.UpdateChannelPinnedTopics", "raw.types.UpdateChannelReadMessagesContents", "raw.types.UpdateChannelTooLong", "raw.types.UpdateChannelUserTyping", "raw.types.UpdateChannelViewForumAsMessages", "raw.types.UpdateChannelWebPage", "raw.types.UpdateChat", "raw.types.UpdateChatDefaultBannedRights", "raw.types.UpdateChatParticipant", "raw.types.UpdateChatParticipantAdd", "raw.types.UpdateChatParticipantAdmin", "raw.types.UpdateChatParticipantDelete", "raw.types.UpdateChatParticipants", "raw.types.UpdateChatUserTyping", "raw.types.UpdateConfig", "raw.types.UpdateContactsReset", "raw.types.UpdateDcOptions", "raw.types.UpdateDeleteChannelMessages", "raw.types.UpdateDeleteMessages", "raw.types.UpdateDeleteQuickReply", "raw.types.UpdateDeleteQuickReplyMessages", "raw.types.UpdateDeleteScheduledMessages", "raw.types.UpdateDialogFilter", "raw.types.UpdateDialogFilterOrder", "raw.types.UpdateDialogFilters", "raw.types.UpdateDialogPinned", "raw.types.UpdateDialogUnreadMark", "raw.types.UpdateDraftMessage", "raw.types.UpdateEditChannelMessage", "raw.types.UpdateEditMessage", "raw.types.UpdateEncryptedChatTyping", "raw.types.UpdateEncryptedMessagesRead", "raw.types.UpdateEncryption", "raw.types.UpdateFavedStickers", "raw.types.UpdateFolderPeers", "raw.types.UpdateGeoLiveViewed", "raw.types.UpdateGroupCall", "raw.types.UpdateGroupCallConnection", "raw.types.UpdateGroupCallParticipants", "raw.types.UpdateInlineBotCallbackQuery", "raw.types.UpdateLangPack", "raw.types.UpdateLangPackTooLong", "raw.types.UpdateLoginToken", "raw.types.UpdateMessageExtendedMedia", "raw.types.UpdateMessageID", "raw.types.UpdateMessagePoll", "raw.types.UpdateMessagePollVote", "raw.types.UpdateMessageReactions", "raw.types.UpdateMoveStickerSetToTop", "raw.types.UpdateNewAuthorization", "raw.types.UpdateNewChannelMessage", "raw.types.UpdateNewEncryptedMessage", "raw.types.UpdateNewMessage", "raw.types.UpdateNewQuickReply", "raw.types.UpdateNewScheduledMessage", "raw.types.UpdateNewStickerSet", "raw.types.UpdateNewStoryReaction", "raw.types.UpdateNotifySettings", "raw.types.UpdatePeerBlocked", "raw.types.UpdatePeerHistoryTTL", "raw.types.UpdatePeerLocated", "raw.types.UpdatePeerSettings", "raw.types.UpdatePeerWallpaper", "raw.types.UpdatePendingJoinRequests", "raw.types.UpdatePhoneCall", "raw.types.UpdatePhoneCallSignalingData", "raw.types.UpdatePinnedChannelMessages", "raw.types.UpdatePinnedDialogs", "raw.types.UpdatePinnedMessages", "raw.types.UpdatePinnedSavedDialogs", "raw.types.UpdatePrivacy", "raw.types.UpdatePtsChanged", "raw.types.UpdateQuickReplies", "raw.types.UpdateQuickReplyMessage", "raw.types.UpdateReadChannelDiscussionInbox", "raw.types.UpdateReadChannelDiscussionOutbox", "raw.types.UpdateReadChannelInbox", "raw.types.UpdateReadChannelOutbox", "raw.types.UpdateReadFeaturedEmojiStickers", "raw.types.UpdateReadFeaturedStickers", "raw.types.UpdateReadHistoryInbox", "raw.types.UpdateReadHistoryOutbox", "raw.types.UpdateReadMessagesContents", "raw.types.UpdateReadStories", "raw.types.UpdateRecentEmojiStatuses", "raw.types.UpdateRecentReactions", "raw.types.UpdateRecentStickers", "raw.types.UpdateSavedDialogPinned", "raw.types.UpdateSavedGifs", "raw.types.UpdateSavedReactionTags", "raw.types.UpdateSavedRingtones", "raw.types.UpdateSentStoryReaction", "raw.types.UpdateServiceNotification", "raw.types.UpdateSmsJob", "raw.types.UpdateStarsBalance", "raw.types.UpdateStickerSets", "raw.types.UpdateStickerSetsOrder", "raw.types.UpdateStoriesStealthMode", "raw.types.UpdateStory", "raw.types.UpdateStoryID", "raw.types.UpdateTheme", "raw.types.UpdateTranscribedAudio", "raw.types.UpdateUser", "raw.types.UpdateUserEmojiStatus", "raw.types.UpdateUserName", "raw.types.UpdateUserPhone", "raw.types.UpdateUserStatus", "raw.types.UpdateUserTyping", "raw.types.UpdateWebPage", "raw.types.UpdateWebViewResultSent"]


[docs] class Update: # type: ignore """Object contains info on events occurred. Constructors: This base type has 137 constructors available. .. currentmodule:: hydrogram.raw.types .. autosummary:: :nosignatures: UpdateAttachMenuBots UpdateAutoSaveSettings UpdateBotBusinessConnect UpdateBotCallbackQuery UpdateBotChatBoost UpdateBotChatInviteRequester UpdateBotCommands UpdateBotDeleteBusinessMessage UpdateBotEditBusinessMessage UpdateBotInlineQuery UpdateBotInlineSend UpdateBotMenuButton UpdateBotMessageReaction UpdateBotMessageReactions UpdateBotNewBusinessMessage UpdateBotPrecheckoutQuery UpdateBotShippingQuery UpdateBotStopped UpdateBotWebhookJSON UpdateBotWebhookJSONQuery UpdateBroadcastRevenueTransactions UpdateChannel UpdateChannelAvailableMessages UpdateChannelMessageForwards UpdateChannelMessageViews UpdateChannelParticipant UpdateChannelPinnedTopic UpdateChannelPinnedTopics UpdateChannelReadMessagesContents UpdateChannelTooLong UpdateChannelUserTyping UpdateChannelViewForumAsMessages UpdateChannelWebPage UpdateChat UpdateChatDefaultBannedRights UpdateChatParticipant UpdateChatParticipantAdd UpdateChatParticipantAdmin UpdateChatParticipantDelete UpdateChatParticipants UpdateChatUserTyping UpdateConfig UpdateContactsReset UpdateDcOptions UpdateDeleteChannelMessages UpdateDeleteMessages UpdateDeleteQuickReply UpdateDeleteQuickReplyMessages UpdateDeleteScheduledMessages UpdateDialogFilter UpdateDialogFilterOrder UpdateDialogFilters UpdateDialogPinned UpdateDialogUnreadMark UpdateDraftMessage UpdateEditChannelMessage UpdateEditMessage UpdateEncryptedChatTyping UpdateEncryptedMessagesRead UpdateEncryption UpdateFavedStickers UpdateFolderPeers UpdateGeoLiveViewed UpdateGroupCall UpdateGroupCallConnection UpdateGroupCallParticipants UpdateInlineBotCallbackQuery UpdateLangPack UpdateLangPackTooLong UpdateLoginToken UpdateMessageExtendedMedia UpdateMessageID UpdateMessagePoll UpdateMessagePollVote UpdateMessageReactions UpdateMoveStickerSetToTop UpdateNewAuthorization UpdateNewChannelMessage UpdateNewEncryptedMessage UpdateNewMessage UpdateNewQuickReply UpdateNewScheduledMessage UpdateNewStickerSet UpdateNewStoryReaction UpdateNotifySettings UpdatePeerBlocked UpdatePeerHistoryTTL UpdatePeerLocated UpdatePeerSettings UpdatePeerWallpaper UpdatePendingJoinRequests UpdatePhoneCall UpdatePhoneCallSignalingData UpdatePinnedChannelMessages UpdatePinnedDialogs UpdatePinnedMessages UpdatePinnedSavedDialogs UpdatePrivacy UpdatePtsChanged UpdateQuickReplies UpdateQuickReplyMessage UpdateReadChannelDiscussionInbox UpdateReadChannelDiscussionOutbox UpdateReadChannelInbox UpdateReadChannelOutbox UpdateReadFeaturedEmojiStickers UpdateReadFeaturedStickers UpdateReadHistoryInbox UpdateReadHistoryOutbox UpdateReadMessagesContents UpdateReadStories UpdateRecentEmojiStatuses UpdateRecentReactions UpdateRecentStickers UpdateSavedDialogPinned UpdateSavedGifs UpdateSavedReactionTags UpdateSavedRingtones UpdateSentStoryReaction UpdateServiceNotification UpdateSmsJob UpdateStarsBalance UpdateStickerSets UpdateStickerSetsOrder UpdateStoriesStealthMode UpdateStory UpdateStoryID UpdateTheme UpdateTranscribedAudio UpdateUser UpdateUserEmojiStatus UpdateUserName UpdateUserPhone UpdateUserStatus UpdateUserTyping UpdateWebPage UpdateWebViewResultSent """ QUALNAME = "hydrogram.raw.base.Update" def __init__(self): raise TypeError("Base types can only be used for type checking purposes: " "you tried to use a base type instance as argument, " "but you need to instantiate one of its constructors instead. " "More info: https://docs.hydrogram.org/en/latest/telegram/base/update.html")