Plugins
Templates
Blocks
Template Setup Guides

Telegram Plugin

Link to plugin page: https://zeroqode.com/plugin/telegram-1519019646265x950432348785868800

Instructions

  1. after installing plugin, please insert your api key in all the parameter fields that you see on the plugin tab

  2. go to your app settings - > API -> and click on “this app exposes a Workflow API”

  3. click on the pages menu and go to “api workflow” page

  4. add a new endpoint and type a name for it (this will be the webhook for telegram)

  5. click on the endpoint and then click “detect data”

  6. copy the link

  7. install postman on your computer and then import a collection from this link https://www.getpostman.com/collections/463073462d41f9455e6e 7

  8. in the call that you see replace the URL with the one you copied from the detect data and initialize the call

  9. you should see a success confirmation in the postman window

  10. use setwebhook call to tell Telergram which URL should be used for webhooks (it’s the same that you used in postman but without “initialize” at the end

when using sendmessage call you have a few options for the replymarkupfield (which is optional)

main options are: 1. inline keyboard (shows buttons right next to the message) here is a sample syntax

{ “inline_keyboard”: [[ { “text”: “I’m ready, let’s get started”, “callback_data”: “readytostart” }] ] } you can add more buttons in a row and have a few rows of buttons

2. custom keyboard (shows custom keyboard with buttons instead of the regular keyboard) sample syntax { “keyboard”: [[ { “text”: “Done” }] ],“one_time_keyboard”:true } same here, you can add more buttons in a row and have a few rows of buttons

that’s it, you are all set to send and receive data from Telegram

Telebot - Telegram Template can be found here: https://zeroqode.com/template/telebot---telegram-bot-template-1523962821190x961994650732724200