Replies: 4 comments 12 replies
-
The script keeps track of files forwarded in a config file, but Heroku dumps everything written there when the dyno restarts (after 24h or when stopped by the user). This is the so-called "ephemeral file system", you cannot keep any files modified after the dyno starts. I heard that are some clever ways to bypass this by using a database, but I don't know if the scripts can use that. |
Beta Was this translation helpful? Give feedback.
-
Specifically speaking the offset is updated when you run and hi @Soheib1378, you can definitely run tgcf in a past mode in Heroku, but the offset will not be updated in your It is great for one-time running if you don't care about offset. GitHub actions can be used to run |
Beta Was this translation helpful? Give feedback.
-
@Soheib1378 After 24h Heroku resets the offset value so you will not know the last message forwarded. But there is a way, go to the destination channel and look at the last message, and then look for that message in the source channel. Copy his id from the source and put it in the offset in your config. The next day the forwarding will start with the next message. |
Beta Was this translation helpful? Give feedback.
-
What if I stopped the bot dyno after cloning.
…On Thu, May 6, 2021, 1:51 PM tissole ***@***.***> wrote:
The script keeps track of files forwarded in a config file, but Heroku
dumps everything written there when the dyno restarts (after 24h or when
stopped by the user). This is the so-called "ephemeral file system", you
cannot keep any files modified after the dyno starts.
I heard that are some clever ways to bypass this by using a database, but
I don't know if the scripts can use that.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLDVJH2VT3MG2E6DNQK4BDTMJGR5ANCNFSM44GQTLIQ>
.
|
Beta Was this translation helpful? Give feedback.
-
There are some bots that can clone chats by deploying to heroku, so why the tgcf past mode can't work perfectly on heroku ?
Beta Was this translation helpful? Give feedback.
All reactions