messages.GetSavedHistory
- class pyrogram.raw.functions.messages.GetSavedHistory
Fetch saved messages » forwarded from a specific peer, or fetch messages from a monoforum topic ».
- Details:
Layer:
223ID:
998AB009
- Parameters:
peer (
InputPeer) – Target peer (or topic)offset_id (
int32-bit) – Only return messages starting from the specified message IDoffset_date (
int32-bit) – Only return messages sent before the specified dateadd_offset (
int32-bit) – Number of list elements to be skipped, negative values are also accepted.limit (
int32-bit) – Number of results to returnmax_id (
int32-bit) – If a positive value was transferred, the method will return only messages with IDs less than max_idmin_id (
int32-bit) – If a positive value was transferred, the method will return only messages with IDs more than min_idhash (
int64-bit) – Result hashparent_peer (
InputPeer, optional) – If set, fetches messages from the specified monoforum, otherwise fetches from saved messages.
- Returns:
TL Schema
messages.getSavedHistory#998ab009
flags:#
parent_peer:flags.0?InputPeer
peer:InputPeer
offset_id:int
offset_date:int
add_offset:int
limit:int
max_id:int
min_id:int
hash:long
= messages.Messages
Parameter Tree
InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatlongInputPeerUserlonglongInputPeerChannellonglongInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatlongInputPeerUserlonglongInputPeerChannellonglongInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongintintintintintintlongExample
await app.invoke(
GetSavedHistory(
parent_peer=await app.resolve_peer(chat_id),
peer=await app.resolve_peer(chat_id),
offset_id=0,
offset_date=0,
add_offset=0,
limit=0,
max_id=0,
min_id=0,
hash=0,
)
)