the simplest way to run dify workflow in telegram
- copy
.env.exampleto.envand fill the required fields (get bot token from botfather, and dify api from your dify workflow) - create a virtual environment
python3 -m venv venv - activate the virtual environment
source venv/bin/activate - install the dependencies
pip install -r requirements.txt - run the server
python -m src.bot - go to telegram and start the bot
Note: Following these steps may result in charges for the use of DigitalOcean services.
- You need a DigitalOcean account. If you don't already have one, you can sign up at https://cloud.digitalocean.com/registrations/new.
Click this button to deploy the app to the DigitalOcean App Platform. If you are not logged in, you will be prompted to log in with your DigitalOcean account.
Using this button disables the ability to automatically re-deploy your app when pushing to a branch or tag in your repository as you are using this repo directly.
If you want to automatically re-deploy your app, fork the GitHub repository to your account so that you have a copy of it stored to the cloud. Click the Fork button in the GitHub repository and follow the on-screen instructions.
After forking the repo, you should now be viewing this README in your own GitHub org (e.g. https://github.com/<your-org>/DifyGram). To deploy the new repo, visit https://cloud.digitalocean.com/apps and click Create App. Then, click GitHub, select the repository you created and select the main branch. App Platform will inspect the code, automatically detect the kind of component to create, and use the correct buildpack to create and deploy a container.
When you no longer need this sample application running live, you can delete it by following these steps:
- Visit the Apps control panel at https://cloud.digitalocean.com/apps.
- Navigate to the sample app.
- In the Settings tab, click Destroy.
Note: If you do not delete your app, charges for using DigitalOcean services will continue to accrue.