PageRelatedArticle

class pyrogram.raw.types.PageRelatedArticle

Related article

Constructor of PageRelatedArticle.

Details:
  • Layer: 223

  • ID: B390DC08

Parameters:
  • url (str) – URL of article

  • webpage_id (int 64-bit) – Webpage ID of generated IV preview

  • title (str, optional) – Title

  • description (str, optional) – Description

  • photo_id (int 64-bit, optional) – ID of preview photo

  • author (str, optional) – Author name

  • published_date (int 32-bit, optional) – Date of publication

TL Schema

pageRelatedArticle#b390dc08
flags:#
url:string
webpage_id:long
title:flags.0?string
description:flags.1?string
photo_id:flags.2?long
author:flags.3?string
published_date:flags.4?int

= PageRelatedArticle

Parameter Tree

PageRelatedArticle
├── urlstring
├── webpage_idlong
├── titlestring (optional)
├── descriptionstring (optional)
├── photo_idlong (optional)
├── authorstring (optional)
└── published_dateint (optional)

Example

PageRelatedArticle(
    url="https://google.com",
    webpage_id=0,
)