I made my bot connect to telegram and right now it is working. But i have different flows, if the bot is in a group or in a individual chat. I tried to retrieve some information and read the telegram API but only got more confused on how to do it. During a flow, i have an action to see where the bot is at.
- story: Greet user
steps:
- intent: start
- action: action_check_channel
If the bot is in telegram, i would like to now if it is in a group chat or not, so i did this request:
https://api.telegram.org/bot${TELEGRAM_TOKEN}/getChat
The Response i got:
{"ok":false,"error_code":400,"description":"Bad Request: chat_id is empty"}