getUpdates
Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned. This method support both normal and static use
Read more setWebhook
Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.
If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content. This method support both normal and static use
Read more deleteWebhook
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. This method support both normal and static use
Read more getWebhookInfo
Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty. This method support both normal and static use
Read more 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. This method support both normal and static use
Read more logOut
Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters. This method support both normal and static use
Read more close
Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters. This method support both normal and static use
Read more sendMessage
Use this method to send text messages. On success, the sent Message is returned. This method support both normal and static use
Read more forwardMessage
Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned. This method support both normal and static use
Read more copyMessage
Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success. This method support both normal and static use
Read more