I'm using a node server to trigger an event for an API.AI intent that kicks off a series of questions to a Telegram User. Once the trigger is initiated, the questionnaire doesn't begin until a user directly sends some message from Telegram to the bot. Has anyone had any experience with this? I would ideally like API.AI to commence the questionnaire the moment the trigger hits. Any suggestions would be greatly appreciated!
Asked
Active
Viewed 544 times
0
-
Has your Telegram user started your bot yet? If yes then you shouldn't have any problems sending messages to him at any time. – Ahmad Maleki May 24 '17 at 12:57
-
Yes. On the response of that event trigger, i get back the response that should go out to the bot. so my temporary fix is to grab the response and directly send a message from the server through Telegram's API bypassing API.AI. – Geo May 25 '17 at 14:14
-
I'm not sure if I'm getting it right but I think you have a problem with pushing your messages to telegram users. I'm using [telebot](https://github.com/mullwar/telebot) and there is [this](https://github.com/mullwar/telebot#sendmessagechat_id-text-parsemode-replytomessage-replymarkup-notification-webpreview) `sendMessage` method which can be used to send any messages to any known TelegramID. Maybe you are not storing TelegramIDs. – Ahmad Maleki May 27 '17 at 09:32
-
That's the go to method if you are accessing the Telegram API directly, but I am trying to do it through API.AI where this limitation is in place. – Geo May 28 '17 at 19:48