subscriptions

You can use this method for getting updates in case your bot is not subscribed to WebHook. The method is based on long polling.

Every update has its own sequence number. marker property in response points to the next upcoming update.

All previous updates are considered as committed after passing marker parameter. If marker parameter is not passed, your bot will get all updates happened after the last commitment.

get/updates

Request

  • Base URL
    https://botapi.tamtam.chat
  • URL
    https://botapi.tamtam.chat/updates
  • Auth
    API key in query parameter access_token

Query parameters

limitinteger

Maximum number of updates to be retrieved

timeoutinteger

Timeout in seconds for long polling

markerinteger nullable

Pass null to get updates you didn't get yet

typesstring[] nullable

Comma separated list of update types your bot want to receive

Response

List of updates

markerinteger nullable required

Pointer to the next data page

Changes

    • info

      added message_construction_request message_constructed discriminator mapping keys to the / response property for the response status

    • info

      added message_chat_created discriminator mapping keys to the / response property for the response status