luckydonald / pytg

Python package that wraps around Telegram messenger CLI. Send and receive messages, and more.
MIT License
369 stars 76 forks source link

no event for message received in channel #124

Closed 0xecute closed 7 years ago

0xecute commented 7 years ago

The problem

I don't receive messages from channel in the python script (dump.py as reference)

Your environment

Fill out your used versions:

Component Version
python 2.7.13
pytg   0.4.10  
OS     Last Ubuntu

Expected behaviour

I should receive an event with the message posted in the channel. I m no admin of the channel by the way.

Actual behaviour

No event are received. Then when I run ./telegram-cli it shows me directly all messages received from the channel that are unread.

Thanks for this great library :)

luckydonald commented 7 years ago

Please specify which is the Last Ubuntu ($ uname -a), as that will change in the future.

Can you check if it works with the --json flag set? Best to try starting the CLI with the same parameters as pytg does, they get printed in the debug output.

mikailturkoglu commented 7 years ago

Hello, did you manage to fix your issue? I have exactly the same error and lagging since several hours now... Thanks

0xecute commented 7 years ago

Hi. I read somewhere that for big groups (like more than 500 people.. or more, don't remember exactly), the library doesn't work correctly. I finally switch to https://github.com/vysheng/tg which has fixed this bug. I finally used telethon because it was more adapted to my project. Sorry ^^