GetSearchResultsCalendarRequest
Only users can use this method. See code examples.
---functions--- messages.getSearchResultsCalendar#49f0bde9 peer:InputPeer filter:MessagesFilter offset_id:int offset_date:date = messages.SearchResultsCalendar
Returns
| messages.SearchResultsCalendar |
This type can only be an instance of:
| SearchResultsCalendar |
Parameters
| peer | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.). |
| filter | MessagesFilter | |
| offset_id | int | |
| offset_date | date |
Known RPC errors
This request can cause 1 known error:
FilterNotSupportedError | . |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.GetSearchResultsCalendarRequest(
peer='username',
filter=types.InputMessagesFilterPhotos(),
offset_id=42,
offset_date=datetime.datetime(2018, 6, 25)
))
print(result.stringify())