subscriptions

Subscribe

Subscribes bot to receive updates via WebHook. After calling this method, the bot will receive notifications about new events in chat rooms at the specified URL.

Your server must be listening on one of the following ports: 80, 8080, 443, 8443, 16384-32383

post/subscriptions

Request

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

Request body

urlstring required

URL of HTTP(S)-endpoint of your bot. Must starts with http(s)://

update_typesstring[]

List of update types your bot want to receive. See Update object for a complete list of types

versionstring

Version of API. Affects model representation

Response

Success or not result

successboolean required

true if request was successful. false otherwise

messagestring

Explanatory message if the result is not successful

Changes

No recorded changes to this operation across all 70 revisions of this API.