Comments (4)
Where is the database stored?
My guess would be that Heroku is probably giving you a fresh "dyno" periodically, which wipes out the files created at runtime.
from telegram-twitter-forwarder-bot.
I got the reason behind it. In heroku there is dyno recycling. All your dynos will be restarted within 24hours+ 216 random minutes. We can't avoid this recycling also. So is there any way to avoid losing all subscriptions?
from telegram-twitter-forwarder-bot.
Yes, use a database that won't get recycled.
Heroku provides a few DB services (e.g. PostgreSQL).
peewee (our DB layer) supports PostgreSQL and MySQL as well.
You could also do some kind of network mount to some external server and keep the sqlite DB synced there but that seems to be more trouble than it's worth.
from telegram-twitter-forwarder-bot.
I created a database in heroku but I don't know how to connect that with bot. Can u help in it?
from telegram-twitter-forwarder-bot.
Related Issues (20)
- What am I doing wrong when filling secrets.py? HOT 2
- How do I resend bot messages to a channel? HOT 1
- Cannot show the first tweet after subscription if the username of twitter account has _ HOT 4
- I am starting with programing and bots and having some difficulties. When I add the bot to a chat group, it responds to commands(/help, /sub, etc..) but when I add it to a channel, it doesn't work, even if I add it as an admin. How can I configure it to subscribe and receive some messages from twitter? HOT 1
- Question: Realtime streaming for multiple users? HOT 1
- tw_users is len 0 all the time HOT 1
- Upload to server HOT 1
- Sending media HOT 5
- How to add the bot to a telegram channel HOT 4
- Subscription being removed HOT 3
- How to use it in Telegram Channel/Group HOT 1
- I am not able to subscribe to any user's tweet. HOT 1
- log file when crontab edited HOT 1
- ERROR - [{'code': 32, 'message': 'Could not authenticate you.'}] HOT 3
- Migrate to PTB 20.0 HOT 2
- Adapting to paid tier? HOT 1
- Twitter API changed? HOT 4
- I want a telegram bot which can send new folllowing and new tweets about any user, plz give me
- its possible to change Twitter API (tweepy) to nitter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-twitter-forwarder-bot.