### Recent changes

#### Bot API 7.10

Test fixture; not a real release.

### Available types

#### User

This object represents a Telegram user or bot.

Field | Type | Description
--- | --- | ---
id | Integer | Unique identifier.
is_bot | Boolean | True, if this user is a bot.
first_name | String | User's or bot's first name.
last_name | String | Optional. User's or bot's last name.

#### ChatMember

This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:

- ChatMemberOwner
- ChatMemberAdministrator

### Available methods

#### getMe

A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.

#### sendMessage

Use this method to send text messages. On success, the sent Message is returned.

Parameter | Type | Required | Description
--- | --- | --- | ---
chat_id | Integer or String | Yes | Unique identifier for the target chat.
text | String | Yes | Text of the message to be sent.
parse_mode | String | Optional | Mode for parsing entities in the message text.

#### sendDocument

Use this method to send general files. On success, the sent Message is returned.

Parameter | Type | Required | Description
--- | --- | --- | ---
chat_id | Integer | Yes | Unique identifier for the target chat.
document | InputFile or String | Yes | File to send.
caption | String | Optional | Document caption.

#### getUpdates

Use this method to receive incoming updates using long polling. Returns an Array of Update objects.

Parameter | Type | Required | Description
--- | --- | --- | ---
limit | Integer | Optional | Limits the number of updates to be retrieved.