Included Dependencies | Show |
Lines of code | 7128 |
Technical Name |
sync_telegram |
Website | https://itpp.dev/ |
Also available in version | v 14.0 v 13.0 |
Included Dependencies | Show |
Lines of code | 7128 |
Technical Name |
sync_telegram |
Website | https://itpp.dev/ |
Also available in version | v 14.0 v 13.0 |
Telegram Integration
Receive and send messages via Telegram bot
Version: v15.0.6.0.0
Tested and maintained by
IT Projects Labs
Assistance: help@itpp.dev
Let our expertise work for you!
(Doors and windows below are clickable)
/itpp-labs-1100.jpg)
/itpp-labs-930.jpg)
/itpp-labs-690.jpg)
Telegram Integration
Installation
- Install this module in according to Sync Studio Documentation
Configuration
In Telegram
- Send message /newbot to @BotFather and follow further instructions to create a bot and get its token
In Odoo
- Activate Developer Mode
- Open menu [[ Settings ]] >> Technical >> Parameters >> System Parameters
- Check that parameter web.base.url is properly set and it's accessible over internet (it should not be a localhost). Also, telegram accepts https addresses only (i.e. not http)
- Open menu [[ Sync Studio ]] >> Sync Projects
- Select Telegram Integration project
- Go to Parameters tab
- Set Secrets:
- TELEGRAM_BOT_TOKEN
- Unarchive the project
- Open Manual Triggers Tab
- Click button [Run Now] near to Setup task
Usage
In Telegram:
- send some message to the created bot
In Odoo:
- Open [[ Discuss ]] menu
- RESULT: there is channel with name Telegram:<TELEGRAM NAME> (the prefix can be configured in project parameter PARTNER_NAME_PREFIX)
- Open the channel and reply to message
In telegram:
- RESULT: the message is delivered via bot
You can continue chatting this way
File sending and receiving
The operator has the ability to send not just text messages, but also messages with attachments.
- The Telegram Bot API has a limit on the files sent through the bot:
- The operator cannot send to Telegram user more than 10 MB for photos and 50 MB for other files.
- Also, the operator cannot receive files larger than 20 MB from a Telegram user.
Please log in to comment on this module