UpdateServiceNotification

class pyrogram.raw.types.UpdateServiceNotification

A service message for the user.

Constructor of Update.

Details:
  • Layer: 223

  • ID: EBE46819

Parameters:
  • type (str) – String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes).

  • message (str) – Message text

  • media (MessageMedia) – Media content (optional)

  • entities (List of MessageEntity) – Message entities for styled text

  • popup (bool, optional) – If set, the message must be displayed in a popup.

  • invert_media (bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • inbox_date (int 32-bit, optional) – When was the notification receivedThe message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).

TL Schema

updateServiceNotification#ebe46819
flags:#
popup:flags.0?true
invert_media:flags.2?true
inbox_date:flags.1?int
type:string
message:string
media:MessageMedia
entities:Vector<MessageEntity>

= Update

Parameter Tree

UpdateServiceNotification
├── popuptrue (optional)
├── invert_mediatrue (optional)
├── inbox_dateint (optional)
├── typestring
├── messagestring
├── mediaMessageMedia
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ │ ├── spoilertrue (optional)
│ │ ├── photoPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ │ └── idlong
│ │ │ └── Photo
│ │ │ ├── has_stickerstrue (optional)
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── sizesVector < PhotoSize >
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_sizesVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ └── dc_idint
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaGeo
│ │ └── geoGeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── longdouble
│ │ ├── latdouble
│ │ ├── access_hashlong
│ │ └── accuracy_radiusint (optional)
│ ├── MessageMediaContact
│ │ ├── phone_numberstring
│ │ ├── first_namestring
│ │ ├── last_namestring
│ │ ├── vcardstring
│ │ └── user_idlong
│ ├── MessageMediaDocument
│ │ ├── nopremiumtrue (optional)
│ │ ├── spoilertrue (optional)
│ │ ├── videotrue (optional)
│ │ ├── roundtrue (optional)
│ │ ├── voicetrue (optional)
│ │ ├── documentDocument (optional)
│ │ │ ├── DocumentEmpty
│ │ │ │ └── idlong
│ │ │ └── Document
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── mime_typestring
│ │ │ ├── sizelong
│ │ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ ├── dc_idint
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── alt_documentsVector < Document > (optional)
│ │ │ ├── DocumentEmpty
│ │ │ │ └── idlong
│ │ │ └── Document
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── mime_typestring
│ │ │ ├── sizelong
│ │ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ ├── dc_idint
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── video_coverPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ │ └── idlong
│ │ │ └── Photo
│ │ │ ├── has_stickerstrue (optional)
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── sizesVector < PhotoSize >
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_sizesVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ └── dc_idint
│ │ ├── video_timestampint (optional)
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaWebPage
│ │ ├── force_large_mediatrue (optional)
│ │ ├── force_small_mediatrue (optional)
│ │ ├── manualtrue (optional)
│ │ ├── safetrue (optional)
│ │ └── webpageWebPage
│ │ ├── WebPageEmpty
│ │ │ ├── idlong
│ │ │ └── urlstring (optional)
│ │ ├── WebPagePending
│ │ │ ├── idlong
│ │ │ ├── urlstring (optional)
│ │ │ └── dateint
│ │ ├── WebPage
│ │ │ ├── has_large_mediatrue (optional)
│ │ │ ├── video_cover_phototrue (optional)
│ │ │ ├── idlong
│ │ │ ├── urlstring
│ │ │ ├── display_urlstring
│ │ │ ├── hashint
│ │ │ ├── typestring (optional)
│ │ │ ├── site_namestring (optional)
│ │ │ ├── titlestring (optional)
│ │ │ ├── descriptionstring (optional)
│ │ │ ├── photoPhoto (optional)
│ │ │ │ ├── PhotoEmpty
│ │ │ │ └── Photo
│ │ │ ├── embed_urlstring (optional)
│ │ │ ├── embed_typestring (optional)
│ │ │ ├── embed_widthint (optional)
│ │ │ ├── embed_heightint (optional)
│ │ │ ├── durationint (optional)
│ │ │ ├── authorstring (optional)
│ │ │ ├── documentDocument (optional)
│ │ │ │ ├── DocumentEmpty
│ │ │ │ └── Document
│ │ │ ├── cached_pagePage (optional)
│ │ │ │ └── Page
│ │ │ └── attributesVector < WebPageAttribute > (optional)
│ │ │ ├── WebPageAttributeTheme
│ │ │ ├── WebPageAttributeStory
│ │ │ ├── WebPageAttributeStickerSet
│ │ │ ├── WebPageAttributeUniqueStarGift
│ │ │ └── WebPageAttributeStarGiftAuction
│ │ └── WebPageNotModified
│ │ └── cached_page_viewsint (optional)
│ ├── MessageMediaVenue
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── titlestring
│ │ ├── addressstring
│ │ ├── providerstring
│ │ ├── venue_idstring
│ │ └── venue_typestring
│ ├── MessageMediaGame
│ │ └── gameGame
│ │ └── Game
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── short_namestring
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoPhoto
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ └── documentDocument (optional)
│ │ ├── DocumentEmpty
│ │ └── Document
│ ├── MessageMediaInvoice
│ │ ├── shipping_address_requestedtrue (optional)
│ │ ├── testtrue (optional)
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoWebDocument (optional)
│ │ │ ├── WebDocument
│ │ │ │ ├── urlstring
│ │ │ │ ├── access_hashlong
│ │ │ │ ├── sizeint
│ │ │ │ ├── mime_typestring
│ │ │ │ └── attributesVector < DocumentAttribute >
│ │ │ │ ├── DocumentAttributeImageSize
│ │ │ │ ├── DocumentAttributeAnimated
│ │ │ │ ├── DocumentAttributeSticker
│ │ │ │ ├── DocumentAttributeVideo
│ │ │ │ ├── DocumentAttributeAudio
│ │ │ │ ├── DocumentAttributeFilename
│ │ │ │ ├── DocumentAttributeHasStickers
│ │ │ │ └── DocumentAttributeCustomEmoji
│ │ │ └── WebDocumentNoProxy
│ │ │ ├── urlstring
│ │ │ ├── sizeint
│ │ │ ├── mime_typestring
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── receipt_msg_idint (optional)
│ │ ├── currencystring
│ │ ├── total_amountlong
│ │ ├── start_paramstring
│ │ └── extended_mediaMessageExtendedMedia (optional)
│ │ ├── MessageExtendedMediaPreview
│ │ │ ├── wint (optional)
│ │ │ ├── hint (optional)
│ │ │ ├── thumbPhotoSize (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ └── video_durationint (optional)
│ │ └── MessageExtendedMedia
│ │ └── mediaMessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── MessageMediaGeoLive
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── headingint (optional)
│ │ ├── periodint
│ │ └── proximity_notification_radiusint (optional)
│ ├── MessageMediaPoll
│ │ ├── pollPoll
│ │ │ └── Poll
│ │ │ ├── idlong
│ │ │ ├── closedtrue (optional)
│ │ │ ├── public_voterstrue (optional)
│ │ │ ├── multiple_choicetrue (optional)
│ │ │ ├── quiztrue (optional)
│ │ │ ├── questionTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ ├── answersVector < PollAnswer >
│ │ │ │ └── PollAnswer
│ │ │ ├── close_periodint (optional)
│ │ │ └── close_dateint (optional)
│ │ └── resultsPollResults
│ │ └── PollResults
│ │ ├── mintrue (optional)
│ │ ├── resultsVector < PollAnswerVoters > (optional)
│ │ │ └── PollAnswerVoters
│ │ ├── total_votersint (optional)
│ │ ├── recent_votersVector < Peer > (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── solutionstring (optional)
│ │ └── solution_entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ └── MessageEntityFormattedDate
│ ├── MessageMediaDice
│ │ ├── valueint
│ │ ├── emoticonstring
│ │ └── game_outcomemessages.EmojiGameOutcome (optional)
│ │ └── messages.EmojiGameOutcome
│ │ ├── seedbytes
│ │ ├── stake_ton_amountlong
│ │ └── ton_amountlong
│ ├── MessageMediaStory
│ │ ├── via_mentiontrue (optional)
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ │ └── user_idlong
│ │ │ ├── PeerChat
│ │ │ │ └── chat_idlong
│ │ │ └── PeerChannel
│ │ │ └── channel_idlong
│ │ ├── idint
│ │ └── storyStoryItem (optional)
│ │ ├── StoryItemDeleted
│ │ │ └── idint
│ │ ├── StoryItemSkipped
│ │ │ ├── close_friendstrue (optional)
│ │ │ ├── livetrue (optional)
│ │ │ ├── idint
│ │ │ ├── dateint
│ │ │ └── expire_dateint
│ │ └── StoryItem
│ │ ├── pinnedtrue (optional)
│ │ ├── publictrue (optional)
│ │ ├── close_friendstrue (optional)
│ │ ├── mintrue (optional)
│ │ ├── noforwardstrue (optional)
│ │ ├── editedtrue (optional)
│ │ ├── contactstrue (optional)
│ │ ├── selected_contactstrue (optional)
│ │ ├── outtrue (optional)
│ │ ├── idint
│ │ ├── dateint
│ │ ├── from_idPeer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── fwd_fromStoryFwdHeader (optional)
│ │ │ └── StoryFwdHeader
│ │ ├── expire_dateint
│ │ ├── captionstring (optional)
│ │ ├── entitiesVector < MessageEntity > (optional)
│ │ │ ├── MessageEntityUnknown
│ │ │ ├── MessageEntityMention
│ │ │ ├── MessageEntityHashtag
│ │ │ ├── MessageEntityBotCommand
│ │ │ ├── MessageEntityUrl
│ │ │ ├── MessageEntityEmail
│ │ │ ├── MessageEntityBold
│ │ │ ├── MessageEntityItalic
│ │ │ ├── MessageEntityCode
│ │ │ ├── MessageEntityPre
│ │ │ ├── MessageEntityTextUrl
│ │ │ ├── MessageEntityMentionName
│ │ │ ├── InputMessageEntityMentionName
│ │ │ ├── MessageEntityPhone
│ │ │ ├── MessageEntityCashtag
│ │ │ ├── MessageEntityUnderline
│ │ │ ├── MessageEntityStrike
│ │ │ ├── MessageEntityBankCard
│ │ │ ├── MessageEntitySpoiler
│ │ │ ├── MessageEntityCustomEmoji
│ │ │ ├── MessageEntityBlockquote
│ │ │ └── MessageEntityFormattedDate
│ │ ├── mediaMessageMedia
│ │ │ ├── MessageMediaEmpty
│ │ │ ├── MessageMediaPhoto
│ │ │ ├── MessageMediaGeo
│ │ │ ├── MessageMediaContact
│ │ │ ├── MessageMediaUnsupported
│ │ │ ├── MessageMediaDocument
│ │ │ ├── MessageMediaWebPage
│ │ │ ├── MessageMediaVenue
│ │ │ ├── MessageMediaGame
│ │ │ ├── MessageMediaInvoice
│ │ │ ├── MessageMediaGeoLive
│ │ │ ├── MessageMediaPoll
│ │ │ ├── MessageMediaDice
│ │ │ ├── MessageMediaStory
│ │ │ ├── MessageMediaGiveaway
│ │ │ ├── MessageMediaGiveawayResults
│ │ │ ├── MessageMediaPaidMedia
│ │ │ ├── MessageMediaToDo
│ │ │ └── MessageMediaVideoStream
│ │ ├── media_areasVector < MediaArea > (optional)
│ │ │ ├── MediaAreaVenue
│ │ │ ├── InputMediaAreaVenue
│ │ │ ├── MediaAreaGeoPoint
│ │ │ ├── MediaAreaSuggestedReaction
│ │ │ ├── MediaAreaChannelPost
│ │ │ ├── InputMediaAreaChannelPost
│ │ │ ├── MediaAreaUrl
│ │ │ ├── MediaAreaWeather
│ │ │ └── MediaAreaStarGift
│ │ ├── privacyVector < PrivacyRule > (optional)
│ │ │ ├── PrivacyValueAllowContacts
│ │ │ ├── PrivacyValueAllowAll
│ │ │ ├── PrivacyValueAllowUsers
│ │ │ ├── PrivacyValueDisallowContacts
│ │ │ ├── PrivacyValueDisallowAll
│ │ │ ├── PrivacyValueDisallowUsers
│ │ │ ├── PrivacyValueAllowChatParticipants
│ │ │ ├── PrivacyValueAllowCloseFriends
│ │ │ ├── PrivacyValueAllowPremium
│ │ │ ├── PrivacyValueAllowBots
│ │ │ └── PrivacyValueDisallowBots
│ │ ├── viewsStoryViews (optional)
│ │ │ └── StoryViews
│ │ ├── sent_reactionReaction (optional)
│ │ │ ├── ReactionEmpty
│ │ │ ├── ReactionEmoji
│ │ │ ├── ReactionCustomEmoji
│ │ │ └── ReactionPaid
│ │ └── albumsVector < int > (optional)
│ ├── MessageMediaGiveaway
│ │ ├── only_new_subscriberstrue (optional)
│ │ ├── winners_are_visibletrue (optional)
│ │ ├── channelsVector < long >
│ │ ├── countries_iso2Vector < string > (optional)
│ │ ├── prize_descriptionstring (optional)
│ │ ├── quantityint
│ │ ├── monthsint (optional)
│ │ ├── starslong (optional)
│ │ └── until_dateint
│ │ ├── only_new_subscriberstrue (optional)
│ │ ├── refundedtrue (optional)
│ │ ├── channel_idlong
│ │ ├── additional_peers_countint (optional)
│ │ ├── launch_msg_idint
│ │ ├── winners_countint
│ │ ├── unclaimed_countint
│ │ ├── winnersVector < long >
│ │ ├── monthsint (optional)
│ │ ├── starslong (optional)
│ │ ├── prize_descriptionstring (optional)
│ │ └── until_dateint
│ ├── MessageMediaPaidMedia
│ │ ├── stars_amountlong
│ │ └── extended_mediaVector < MessageExtendedMedia >
│ │ ├── MessageExtendedMediaPreview
│ │ │ ├── wint (optional)
│ │ │ ├── hint (optional)
│ │ │ ├── thumbPhotoSize (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ └── video_durationint (optional)
│ │ └── MessageExtendedMedia
│ │ └── mediaMessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── MessageMediaToDo
│ │ ├── todoTodoList
│ │ │ └── TodoList
│ │ │ ├── others_can_appendtrue (optional)
│ │ │ ├── others_can_completetrue (optional)
│ │ │ ├── titleTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ └── listVector < TodoItem >
│ │ │ └── TodoItem
│ │ └── completionsVector < TodoCompletion > (optional)
│ │ └── TodoCompletion
│ │ ├── idint
│ │ ├── completed_byPeer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ └── dateint
│ ├── rtmp_streamtrue (optional)
│ └── callInputGroupCall
│ ├── InputGroupCall
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── InputGroupCallSlug
│ │ └── slugstring
│ └── msg_idint
└── entitiesVector < MessageEntity >
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── languagestring
│ ├── offsetint
│ ├── lengthint
│ └── urlstring
│ ├── offsetint
│ ├── lengthint
│ └── user_idlong
│ ├── offsetint
│ ├── lengthint
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── document_idlong
│ ├── collapsedtrue (optional)
│ ├── offsetint
│ └── lengthint
├── relativetrue (optional)
├── short_timetrue (optional)
├── long_timetrue (optional)
├── short_datetrue (optional)
├── long_datetrue (optional)
├── day_of_weektrue (optional)
├── offsetint
├── lengthint
└── dateint

Example

UpdateServiceNotification(
    type="text",
    message="Hello",
    media=MessageMediaEmpty(),
    entities=[
            MessageEntityUnknown(
                offset=0,
                length=0
            )
        ],
)