---
title: "Get chat membership"
method: GET
path: "/chats/{chatId}/members/me"
tags: ["chats"]
---

# Get chat membership

`GET /chats/{chatId}/members/me`

## Request

- Base URL: `https://botapi.tamtam.chat`
- URL: `https://botapi.tamtam.chat/chats/{chatId}/members/me`
- Auth: API key in query parameter `access_token`

Returns chat membership info for current bot

## Path parameters

- `chatId` integer, required

## Response `200`

Current bot membership info

- ChatMember
  - `user_id` integer, required: Users identifier
  - `name` string, required: Users visible name
  - `username` string, nullable, required: Unique public user name. Can be `null` if user is not accessible or it is not set
  - `is_bot` boolean, required: `true` if user is bot
  - `last_activity_time` integer, required: Time of last user activity in TamTam (Unix timestamp in milliseconds). Can be outdated if user disabled its "online" status in settings
  - `description` string, nullable: User description. Can be `null` if user did not fill it out
  - `avatar_url` string: URL of avatar
  - `full_avatar_url` string: URL of avatar of a bigger size
  - `last_access_time` integer, required: User last activity time in chat. Can be outdated for super chats and channels (equals to `join_time`)
  - `is_owner` boolean, required
  - `is_admin` boolean, required
  - `join_time` integer, required
  - `permissions` ChatAdminPermission[], nullable, required: Permissions in chat if member is admin. `null` otherwise

## Other responses

- `401`: Authorization Error. No `access_token` provided or token is invalid
- `403`: Access error. You don't have permissions to access this resource
- `404`: Requested resource is not found
- `500`: Internal Server Error

## Changes

- **2021-05-31** `dc45288cfedc`: 1 info
  - added the required property `allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/last_activity_time` to the response with the `200` status
- **2020-04-02** `93fb5d18fdf2`: 1 info
  - the response property `allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/is_bot` became required for the status `200`
- **2020-04-02** `f4ed817ac50f`: 1 info
  - added the optional property `allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/is_bot` to the response with the `200` status
- **2020-02-11** `6cd9dbaf139d`: 1 info
  - added the optional property `allOf[#/components/schemas/UserWithPhoto]/allOf[subschema #2]/description` to the response with the `200` status

[Operation history](https://skmtc.dev/tamtam/apis/tamtam-bot-api/changes/chats/:chatId/members/me/get.md)

---

[API](https://skmtc.dev/tamtam/apis/tamtam-bot-api.md) - [All operations](https://skmtc.dev/tamtam/apis/tamtam-bot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tamtam/apis/tamtam-bot-api/revisions/fa85402ea716?raw)
