Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEND AN IMAGE #40

Open
KsKFabietto opened this issue Mar 15, 2022 · 2 comments
Open

SEND AN IMAGE #40

KsKFabietto opened this issue Mar 15, 2022 · 2 comments

Comments

@KsKFabietto
Copy link

When the telegram channel sent an image, the bot didn't recognize that, how can i fix it?

@sharkcf
Copy link

sharkcf commented Mar 20, 2022

Hey, i have a problem. after i try to login, return this message:
Traceback (most recent call last):
File "C:\Users\victo\nova\forwardgram\forwardgram.py", line 49, in
start(config)
File "C:\Users\victo\nova\forwardgram\forwardgram.py", line 16, in start
client.start()
File "C:\Python39\lib\site-packages\telethon\client\auth.py", line 133, in start
else self.loop.run_until_complete(coro)
File "C:\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Python39\lib\site-packages\telethon\client\auth.py", line 207, in _start
me = await self.sign_in(phone, code=value)
File "C:\Python39\lib\site-packages\telethon\client\auth.py", line 368, in sign_in
result = await self(request)
File "C:\Python39\lib\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "C:\Python39\lib\site-packages\telethon\client\users.py", line 79, in _call
result = await future
telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SignInRequest)

How u fix that ?

@devmexican
Copy link

if event.photo :
file = await client.download_media(event.message.media, file=bytes)

else :
file = await client.download_media(event.message.media, file=bytes)

await client.send_message(Channel_dest,info,file=file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants