get_user_profile_audios()¶
- async Client.get_user_profile_audios()¶
Get the list of profile audios (voice/audio messages) for a user.
Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the target user.offset (
int, optional) – Number of profile audios to skip. Defaults to 0.limit (
int, optional) – Maximum number of profile audios to retrieve. Pass 0 for all. Defaults to 0.
- Returns:
AsyncGenerator– An async generator yieldingAudioobjects.
Example
# Get all profile audios of a user async for audio in app.get_user_profile_audios(user_id): print(audio.file_id)