Giter VIP home page Giter VIP logo

Comments (12)

smaugfm avatar smaugfm commented on August 26, 2024 5

@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.

ShamanValius avatar ShamanValius commented on August 26, 2024 3

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.

jimmy0435 avatar jimmy0435 commented on August 26, 2024 2

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.

manojsitapara avatar manojsitapara commented on August 26, 2024

I am also facing the same issue, have you found any workaround?

from tgcf.

poliandro avatar poliandro commented on August 26, 2024

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.

manojsitapara avatar manojsitapara commented on August 26, 2024

I have observed this issue since last 4-5 days, earlier it was working fine

from tgcf.

manojsitapara avatar manojsitapara commented on August 26, 2024

Thank you, I will take a look

from tgcf.

Navneet-Choudhary avatar Navneet-Choudhary commented on August 26, 2024

@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.

ShamanValius avatar ShamanValius commented on August 26, 2024

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.

ShamanValius avatar ShamanValius commented on August 26, 2024

@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.

SaiMun92 avatar SaiMun92 commented on August 26, 2024

Any solutions?

from tgcf.

mureev avatar mureev commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.