GetHistory
---functions---
messages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages
Returns
Parameters
| peer | InputPeer | required |
| offset_id | int | required |
| offset_date | int | required |
| add_offset | int | required |
| limit | int | required |
| max_id | int | required |
| min_id | int | required |
| hash | long | required |
Example
The examples below use placeholder values. Replace them with real data before running the code.
▶ Example
import asyncio
from ferogram import Client
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app.raw.messages.GetHistory(
peer='username',
offset_id=42,
offset_date=42,
add_offset=0,
limit=100,
max_id=0,
min_id=0,
hash=0
)
print(result)
asyncio.run(main())