davidmckenzie / telebagger

Simple Telegram to Discord one-way relay service
The Unlicense
31 stars 14 forks source link

Missing required positional argument 'hash' #7

Open SuccSock opened 3 years ago

SuccSock commented 3 years ago

I have tried deleting and downloading again, checked every field on the config file, but it keeps happening

Traceback (most recent call last):
  File "telelooper.py", line 52, in <module>
    result = tclient(GetDialogsRequest(
TypeError: __init__() missing 1 required positional argument: 'hash'
xcruiser commented 3 years ago
result = tclient(GetDialogsRequest(
                 offset_date=last_date,
                 offset_id=0,
                 offset_peer=InputPeerEmpty(),
                 limit=chunk_size,
                hash=0
             ))

Add missing parameter HASH=0 will solve this issue.