avatar method

Future<GetAvatar$Query> avatar(
  1. ChatId id
)

Fetches the ChatAvatars of a Chat identified by the provided id.

The authenticated MyUser should be a member of the Chat.

Authentication

Mandatory.

Implementation

Future<GetAvatar$Query> avatar(ChatId id) async {
  Log.debug('avatar($id)', '$runtimeType');

  final variables = GetAvatarArguments(id: id);
  final QueryResult result = await client.query(
    QueryOptions(
      operationName: 'GetAvatar',
      document: GetAvatarQuery(variables: variables).document,
      variables: variables.toJson(),
    ),
  );
  return GetAvatar$Query.fromJson(result.data!);
}