help.SetBotUpdatesStatus

class pyrogram.raw.functions.help.SetBotUpdatesStatus

Informs the server about the number of pending bot updates if they haven’t been processed for a long time; for bots only

Details:
  • Layer: 223

  • ID: EC22CFCD

Parameters:
  • pending_updates_count (int 32-bit) – Number of pending updates

  • message (str) – Error message, if present

Returns:

bool

TL Schema

help.setBotUpdatesStatus#ec22cfcd
pending_updates_count:int
message:string

= Bool

Parameter Tree

SetBotUpdatesStatus
├── pending_updates_countint
└── messagestring

Example

await app.invoke(
    SetBotUpdatesStatus(
        pending_updates_count=0,
        message="Hello",
    )
)