bot message id into user message id?
Стикер
I use Telethon for saving file more than 20mb. I forward file from bot to user and then user store the file. Now, im getting the last message in dialog, but its not work if many files forwarding in the same time.
Listen to events from user account and assign message.file.media.id: message.id or use channels/supergroup if you want equal message.id among accounts
Sir I Have A Question ❓ How To Get Path where .session file is stored And Is possible To Use same session file for all devices Same API_ID AND HASH AND SESSION_NAME ONLY Device CHANGED
The path of session is the one you run the script from + client.session.filename and session file doesn't care about device, can be used anywhere
I am a mobile user and my friend also We are using pydroid 3 application To run Python When I Run code it save session file But in case of my friend no session file are saved But still don't Ask For Verification Again if Once Done
Your friend is checking the wrong place for the session, just import os; print(os.getcwd()) assuming no path was passed to TelegramClient and only name
We Checked The Path But It contains no file
If it doesn't ask for phone number when starting the script, it's there, find it harder, also show the code
No obvious issues with that yeeyee ass AI lookin code, either way, if a message was successfully sent to CHAT_USERNAME and it doesn't ask for phone number when running the script, there is a .session file somewhere fine, just print os.listdir() in the script and the "session_name", and make sure session_name is not a path, Then it has to be in the current working directory as os.getcwd() points to, anything else is system issue deleting it
It's working for me let me know for my friend
Sir when my friend tried import os os.listdir() os.getcwd() It show no results Only [ Program Finished ] I think device issue anyway Thanks 🙏
Обсуждают сегодня