Recent changes

Bot API 7.10

Test fixture; not a real release.

Available types

User

This object represents a Telegram user or bot.

FieldTypeDescription
idIntegerUnique identifier.
is_botBooleanTrue, if this user is a bot.
first_nameStringUser's or bot's first name.
last_nameStringOptional. 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:

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.

ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat.
textStringYesText of the message to be sent.
parse_modeStringOptionalMode for parsing entities in the message text.

sendDocument

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

ParameterTypeRequiredDescription
chat_idIntegerYesUnique identifier for the target chat.
documentInputFile or StringYesFile to send.
captionStringOptionalDocument caption.

getUpdates

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

ParameterTypeRequiredDescription
limitIntegerOptionalLimits the number of updates to be retrieved.