adityathebe / telegramForwarder

Telegram bot to forward messages
162 stars 116 forks source link

Showing Value error everytime #10

Closed rsoorajs closed 3 years ago

rsoorajs commented 3 years ago

The below error is appearing everytime.. db,pytjonbot,nodebot everything is working fine.

this is most probably due to telethon error.can you fix it ? which telethon version you are using ?

ValueError: Could not find the input entity for <telethon.tl.types.PeerUser object at 0x7f62334f7070>. Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details. python-agent_1 | [INFO] forwarder.py:50 --

adityathebe commented 3 years ago

what action causes this error ?

rsoorajs commented 3 years ago

what action causes this error ? when i run

docker-compose up --build

rsoorajs commented 3 years ago

what action causes this error ?

i searched the error in web..all i can found is telethon version error

adityathebe commented 3 years ago

I just did a fresh clone of the app and was able to run with no errors. Did you create the .env file ?

image

rsoorajs commented 3 years ago

IMG_20201201_181251_827

bot is working fine..but msgs are not forwarding..when i look on the cmd,i am getting the above error..

when i changed telethon version to 1.9.0 the error log is disappearing,but still messages arent forwarding..this is a great code..but something somewhere wrong..i cant figured that..

rsoorajs commented 3 years ago

yup i also filled .env vars

adityathebe commented 3 years ago

Message forwarding are working fine for me.

Can you make sure that the agent account is present in both the entities (source & destination) ?

rsoorajs commented 3 years ago

Message forwarding are working fine for me.

Can you make sure that the agent account is present in both the entities (source & destination) ?

i will attach screenshots below..as per my calculation,db,pythonbot and node bot is up..

the error reffers to telethon..lol i wonder how this works for you

rsoorajs commented 3 years ago

IMG_20201201_191729_859 IMG_20201201_191756_327 IMG_20201201_191732_849 IMG_20201201_191749_769 IMG_20201201_191926_996

adityathebe commented 3 years ago

Can you make sure that the agent account is present in both the entities (source & destination) ?

I'm not really sure why it's not working for you. Can you verify what I asked before ?

rsoorajs commented 3 years ago

Can you make sure that the agent account is present in both the entities (source & destination) ?

I'm not really sure why it's not working for you. Can you verify what I asked before ?

how to verify that..i really dont get that part

adityathebe commented 3 years ago

image

Make sure that the agent telegram account is in both of this group/channel

rsoorajs commented 3 years ago

image

Make sure that the agent telegram account is in both of this group/channel

yup it is..both are in same telegram account

rsoorajs commented 3 years ago

image

Make sure that the agent telegram account is in both of this group/channel

luckily it Started working.

the error occours the source and destination channels are created by same telegram account

i tried a different telegram a channel and it worked

rsoorajs commented 3 years ago

Anyway to add redirection without join the channel ?

currently if we add

/add @test @test2

our user account automatically joins the test channel..instead of that..any way to join bot instead of our useraccount ?

adityathebe commented 3 years ago

Sorry, that's not possible at the moment and I don't plan to add that feature