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
LicenseOPL-1
Websitehttps://apps.odoo.com/apps/modules/10.0/telegram_leads/
Also available in version v 12.0 v 11.0
Required Apps CRM (crm)
Included Dependencies
Technical name telegram_leads
LicenseOPL-1
Websitehttps://apps.odoo.com/apps/modules/10.0/telegram_leads/
Also available in version 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.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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.