Citation: This repo is forked from yrestom/erpnext_telegram.
Telegram Integration and Extra Notifications For Frappe & Erpnext to sending fast notifications for more productivity.
- Sending custom notification by Telegram Bots to Users, Employees, Customers, Suppliers or Students, and Telegram group chat.
- Sending Telegram direct messages from any form view.
- Multiple Telegram Bots channels.
- Sending custom notification by SMS to Users, Employees, Customers, Suppliers or Students .
- Get alerts on important dates
-
./env/bin/pip install python-telegram-bot --upgrade
"This command is necessary to install the python-telegram-bot into bench environment. Otherwise, the pip3/pip command will install it in the python environment" -
bench get-app erpnext_telegram_integration https://github.com/yrestom/erpnext_telegram.git
-
bench --site [your.site.name] install-app erpnext_telegram_integration
-
bench build
-
bench restart
-
Create a new Telegram bot in
BotFather
For more reference :
-
Get Telegram Bot Token from
BotFather
In Erpnext Telegram Integration
-
Go to → Telegram Settings -> New Enter Telegram Bot Token
-
Go to → Telegram User Settings -> New to setup and define a new user setting
- Choose party.
- Choose Telegram User.
- Choose Telegram Settings.
- If it's a group check "Is Group Chat".
- Press "Generate Telegram Token" then the app will copy the "Telegram Token" to clipboard and will open a new window into the browser to the Bot web page.
- Paste "Telegram Token" in the Telegram Bot or if it is a Group Chat paste in the group after adding the Bot.
- Press "Get Chat ID" And if everything is ok it will get the chat ID.
- Press Save.
-
Go to → Telegram Notification -> New You can configure various notifications in your system to remind you of important activities. As the original Erpnext Notification.
Here chose the profile of "Telegram User Settings" want to send to him the notification or use the checkbox "Dynamic Recipients" to get the recipient from the DocType dynamically if it has a Link Field like "Customer", "Supplier", "Student" or "Employee", for this it needs to set up a "Telegram User Settings" for the customer, supplier ...
-
Also, you can send directly a Telegram message from any form view by going to the Menu and click "Send To Telegram".
-
When the app send a Telegram Notification it will write a new log into Extra Notifications > Extra Notification Log .
in Extra Notifications:
-
Go to → SMS Settings and set it up as here.
-
Go to → SMS Notification → New
You can configure various notifications in your system to remind you of important activities. As the original Erpnext Notification.
Here chose the "Recipients" want to send to them the notification or use the checkbox "Dynamic Recipients" to get the recipient from the DocType dynamically if it has a Link Field like "Customer", "Supplier", "Student" or "Employee", for this it needs to set up a Contact for the customer, supplier..., and make sure the contact is related to the customer or supplier... and has Primary Mobile number as default.
-
Press Save.
in Extra Notifications:
- Go to → Date Notification → New.
- Choose the DocType Name.
- Press "Get Date Fields"
- Choose the wanted fields an delete the rest.
- Configure when the alert will be trigger by selecting "Days Before" or "Days After" and selecting a number of days for each field.
- Configure the "Conditions" if need it.
- Press Save.
When the Date Notification is trigger it will send an email to the related user and it will write a new log into Extra Notifications > Extra Notification Log .
- Frappe Version 12+
- Python Version 3+
- python-telegram-bot
MIT