Skip to content

Telegram Setup

Jack edited this page Jan 27, 2019 · 3 revisions

Prerequisite's

  • You must have a valid https domain / certificate!

Create telegram bot

Talk to telegram Bot Father

Type /newbot

Follow the steps to get your token which will look like this:

637265214:ASAH6V6PrADA7-BisxgadsES-czA2NZ_HhADWw

Add your details to Rasa talk like below!

Hit save and done!

Entities

You can reference some telegram entities in the message which are saved as

If the user sends a command like /yt a video t_user_message will equal just a video

{
  "t_id": 104335205,
  "t_is_bot": false,
  "t_first_name": "Jack",
  "t_last_name": "DH",
  "t_username": "jackdh",
  "t_language_code": "en",
  "t_user_message": "This is the message the user send"
}

Then use them like this: