7 months ago
I am trying to run two versions of a bot, that use two different python scripts and two different telegram bots but I get an error when i try to run both services
ValueError: Could not find the input entity for PeerUser(user_id=1111) (PeerUser). Please read https://docs.telethon.dev/en/stable/concepts/entities.html to find out more details.
Or this:
telethon.errors.rpcerrorlist.AuthKeyDuplicatedError: The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions (caused by InvokeWithLayerRequest(InitConnectionRequest(GetConfigRequest)))
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
7 months ago
You would need to run the two scripts as separate Railway services.
https://docs.railway.app/overview/the-basics#services