Closed Argon007 closed 5 years ago
Does it work with previous version?
pip install -I telethon=1.2
1.2 or the newest 1.3 version are giving me the samer error messages. Seems to be broken when Telethon went to version 1.x it seems.
I already changed this line to get it starting:
tclient = TelegramClient('session_name', api_id, api_hash).start()
But no idea how to solve this one:
Traceback (most recent call last):
File "telelooper.py", line 61, in <module>
for p in result.chats:
AttributeError: 'coroutine' object has no attribute 'chats'
I rely on you to solve this. But if you don't have time to have a quick look into it, no problem! In the end it's a hobby project and not a paid one :-)
thank you in advance!
P.S or do you know another project that can forward Telegram messages -> Discord without being a bot on the Telegram side?
So the version I'm using which works is 0.19.1.4, reading the docos for the 1.0 change it would require a fair bit of refactoring. It "aint broke" at the moment for me so unless something changes in the Telegram API it's unlikely I'll be refactoring for the new version.
So my suggestion would be to either manually install 0.19.1.4, or try the telethon-sync branch mentioned in the docos here.
If you’re not ready for this, you can
pip install telethon-sync
. It’s a synchronous branch that mimics the asyncio version with threads and should work under Python 3.4
Hi,
forgot to answer you about this topic. I installed version 0.19.1.4 and like you mentioned, everything is working fine!
Great work and thanks!
Hi,
Can someone please help me? The Telelooper and Telebagger scripts aren't working anymore since Telethon was updated. I'm not a coder so it's difficult to see what's really wrong.
I tried some things and got a but further in it, but now i'm stuck.
This is what I have right now:
But when I run it I get the following error:
So there is a connection, because I received the SMS, but now it says something about the attribute 'chats'.
Or does anyone know another solution to forward Telegram posts to Discord? Many thanks !