Telegram Leads

by ,
Odoo          
v 10.0 v 11.0 v 12.0 Third Party

230.00 €

You bought this module and need support ? Click here !
Technical name telegram_leads
LicenseLGPL-3
Websitehttps://apps.odoo.com/apps/modules/10.0/telegram_leads/
Read description for v 12.0 v 11.0
Required Apps CRM (crm)
Included Dependencies
Technical name telegram_leads
LicenseLGPL-3
Websitehttps://apps.odoo.com/apps/modules/10.0/telegram_leads/
Read description for v 12.0 v 11.0
Required Apps CRM (crm)
Included Dependencies

Telegram Leads

Generate Leads out of messages forwarded in Telegram

By purchasing this package, you will get:
  • Core OpenAPI module. You will not need to purchase it twice and any other custom integration will be discounted
  • Prepared API access configuration needed to this integration
  • Zip archive of python scripts to setup AWS lambda. AWS lambda hosting is free for 1 Million requests and 400 000 GB-seconds per month
  • Warranted support for the integration

How it works

Tested on Odoo
10.0 community
Tested on Odoo
10.0 enterprise

Telegram Leads

Module Installation

  • Install this module in a usual way

OpenAPI

  • In Odoo nagivate to menu [[ OpenAPI ]] >> Integrations
  • Select integration telegram.
  • At Specification Link field there is an OpenAPI URL which is needed in next steps
  • At Allowed Users tab click on the admin. You will see OpenAPI token which is needed in next steps.
    • You can also set another user to call api methods on behalf of that user

Telegram Bot

  • In telegram client open BotFather
  • Send /newbot command to create a new bot
  • Follow instruction to set bot name and get bot token
  • Keep your token secure and store safely, it can be used by anyone to control your bot

AWS Lambda

Runtime

Use Python 3.6

create-lambda.png

Function code

  • Set Code entry type to Upload a .zip file
  • Select aws-lambda.zip from aws-lambda/ folder of this module

Environment variables

  • BOT_TOKEN -- the one you got from BotFather
  • LOGGING_LEVEL -- Level of loger. Allowed values: DEBUG, INFO, CRITICAL, ERROR, WARNING. Default value: INFO
  • ODOO_OPENAPI_SPECIFICATION_URL -- Specification link
  • ODOO_OPENAPI_TOKEN -- OpenAPI Token
  • TELEGRAM_USERS -- comma separated list of telegram users ID. You can get one by sending any message to Get My ID bot

Trigger

  • Use API Gateway* option
  • Set the security mechanism for your API endpoint as Open
  • Once you configure it and save, you will see Invoke URL under Api Gateway details section

Register telegram webhook

Tell telegram to send notifications to lambda function when bot receives new messages

# set your values
BOT_TOKEN="PASTE_BOT_TOKEN_HERE"
INVOKE_URL="https://PASTE-YOUR-INVOKE-URL"

# execute command below without changes
curl -XPOST https://api.telegram.org/bot${BOT_TOKEN}/setWebhook --data-urlencode "url=${INVOKE_URL}"

Usage

  • In telegram: forward some messages to the bot
  • RESULT: messages are attached to new or existing leads
bot.jpg

Support

If something goes wrong feel free to Contact us at sync@it-projects.info.

We may need Odoo logs and CloudWatch logs information as well as proof of purchase.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.