get_chat_audios()#
- Client.get_chat_audios()#
Get a user profile audios sequentially.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).offset (
int, optional) – Sequential number of the first audio to be returned. By default, all audios are returned.limit (
int, optional) – Limits the number of audios to be retrieved. By default, no limit is applied and all profile audios are returned.
- Returns:
Generator– A generator yieldingAudioobjects.
Example
async for audio in app.get_chat_audios("me"): print(audio)