Hi all,
I would like to know if I can create an agent that recieves events for each new chat message that i recieve in my telegram for a specific channel or from a bot ?
can someone give me the guidelines for creating such an agent - i am going through the docs and I think it is possible. any clues or ideas would be greatly appreciated.
Thank YOu!
Hi,
I think the simplest solution would be to use the WebhookAgent. This guide explains how to register a the Webhhok with Telegram: https://core.telegram.org/bots/webhooks
You will get the required token after you created your bot: https://core.telegram.org/bots/api#authorizing-your-bot
hi dsander,
thanks for reply.. i wanted to use the telegram api, instead of the bot api because i needed to capture my conversations in public channels/etc. that i participate in, . I believe bot api cannot do that.
i am not looking to create a bot so .. would be looking for a wrapper telegram api and use it as a huginn agent.. looking to find ways to achieve that
I see, have a look at the existing TelegramAgent it uses the GetUpdates API call to get a list if recent conversations, I think you can use that call as a base for your Agent.
To help create new Agent (gems) we have huginn_agent which will create a Agent gem skeleton. You need to have a working ruby on rails development environment to run the test though.
Most helpful comment
I see, have a look at the existing
TelegramAgentit uses theGetUpdatesAPI call to get a list if recent conversations, I think you can use that call as a base for your Agent.To help create new Agent (gems) we have huginn_agent which will create a Agent gem skeleton. You need to have a working ruby on rails development environment to run the test though.