Comments (12)
@manojsitapara I don't think it's a problem with telegram. Here is why:
- tgcf is using an official tdlib library (python bindings of it) so it should work the same as any other desktop/mobile telegram client. My iOS tg app receives updates from any channel just fine, as they happen.
- I ended up coding a barebones solution myself using tglib-go golang bindings - and it works without issues.
from tgcf.
Unfortunately, I encountered this issue (( The problem is most likely in this particular service (there's also suspicion of insufficient RAM on the server). The logs are clean.
Here's how it happens:
- Initial settings: no plugins, user mode, live, Show 'Forwarded from', forwarding from multiple channels to one (1-3 messages per hour in each channel), launched using a Docker image from the instruction (Docker Hub).
- From some channels, there's initially silence (no forwarded messages since start), but once a day, 1 forwarded message may appear (so far, only seen one) and then silence again.
- From some channels, messages are forwarded initially, but at some point either complete silence or some messages are lost (example: 3 messages arrived, 1 forwarded, 2 not forwarded, 3 forwarded).
- And the strangest moment, forwarding messages with absolutely random time. For example, a message arrives at one time, forwarding can be instantaneous, or after a minute, two, three, five, ten, twenty, or even several hours. At first, I tried to understand the pattern, but when the time passed 20 minutes, I got lost)))
Now I'll try it on my own computer, where the hardware isn't as restricted as on the server, I'll monitor and report back.
from tgcf.
I met the same situation. However, I noticed that when I opened the web browser to that channel. The messages can be forwarded properly. Any ideas?
from tgcf.
I am also facing the same issue, have you found any workaround?
from tgcf.
I heard that this is a Telegram issue, apparently they sent updates from big channels with some delay, while for smaller channels they send the updates more quickly. Some guys were changing something in telethon, but I forgot what exactly. If anybody knows, please share.
from tgcf.
I have observed this issue since last 4-5 days, earlier it was working fine
from tgcf.
Thank you, I will take a look
from tgcf.
@manojsitapara I don't think it's a problem with telegram. Here is why:
- tgcf is using an official tdlib library (python bindings of it) so it should work the same as any other desktop/mobile telegram client. My iOS tg app receives updates from any channel just fine, as they happen.
- I ended up coding a barebones solution myself using tglib-go golang bindings - and it works without issues.
Can you help how to run your script
from tgcf.
I'm back, unfortunately so late due to work. Here are my logs for approximately a day's worth of work on my device. Unfortunately, the situation hasn't improved, but critical errors have emerged. I've also noticed a large number of 'Sleeping for 2s' instances, despite very few messages in the target channels (around 5 per hour). Attached is the log file.
tgcf_logs-orig.txt
from tgcf.
@jimmy0435, I still couldn't get @smaugfm's solution to run, constantly getting a 503 error.
But I came across a project in Golang, haven't tested it thoroughly yet, but at first glance, it works quite well. Unfortunately, there's no documentation available. This can be resolved with a small script that scans the entire project and creates a single mega txt file with all the project contents. Then you can upload it to any AI for context and ask questions to figure out what you want to do.
P.S. I've found that now this project, along with its creator, is no longer accessible (404 error). I don't understand what's causing this, but GitHub remembers everything))) and you can find traces/forks if someone really needs it. It's a pity it happened this way, the project was really well-written.
P.P.S. It's still available at pkg.go.dev
P.P.P.S. repo gogram
from tgcf.
Any solutions?
from tgcf.
I only can add that if I switch from "live" to "past" mode forwarding works.
This could cover my needs. I'll continue to look for options if I can implement my own scheduling and run bot in past mode every 30 mins or so.
from tgcf.
Related Issues (20)
- "tgcf-web" command gives this error on Mac HOT 6
- Set custom thumbnail to forwarded videos
- Autoforward not working with big channels with lots of subscribers. HOT 1
- Not working with python 3.12 HOT 4
- I can't run this program properly, can anyone help me?
- -bash: tgcf-web: command not found HOT 5
- Duplicate Message
- FloodWait
- streamlit throw error: `AttributeError: module 'streamlit.components' has no attribute 'v1'` HOT 2
- Session String HOT 2
- error Invalid object ID for a chat when trying to use chat IDs HOT 1
- Account got banned
- error: unpack requires a buffer of 275 bytes HOT 1
- What is this error?
- Cannot connect to the server.
- The official Telegram bot can forward messages, but the user bot cannot forward messages
- Unhandled exception on updates.py:513 new_message_handler
- If you need different filters for different channels, you can not make them, filters are only common for all channels from which you send? If so, the script is very useless.
- not work
- Not Forwading Massages HOT 2
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 tgcf.