Forums

Hello, me need help (python telegram bot)

I paid $5 for hosting, I hoped that it would work, but for some reason it did not work

gives an error message

raise exceptions.NetworkError(f"aiohttp client throws an error: {e.class.name}: {e}") aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [Network is unreachable]

How can I solve this problem, help

I figured it out a little, but I can’t figure out how to add a proxy for aiogram http://proxy.server:3128 this?

I figured it out, everything started, I'm sorry that I created a garbage topic!

Since I created a topic, I want to know from you who understands, the script itself will work all the time, are there any automatic system restarts, in order to know if it is necessary to add autorun somehow, who knows

Tried to use always-on tasks

gave an error in the code error:

aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host proxy.server:3128 ssl:default [Name or service not

When I do a manual run via bash then the script runs and runs.. help

Since I created a topic, I want to know from you who understands, the script itself will work all the time, are there any automatic system restarts, in order to know if it is necessary to add autorun somehow, who knows

Always on tasks are what you want for a script that runs all the. If the script then dies it'll get restarted automatically

So exactly, I need this bot telegram script to be restarted if a crash happens, however, if I run the script through bash, it works fine, but as soon as I add it to the always task command, it gives the error ClientConnectorError: Cannot connect to host proxy.server:3128 ssl:default

Don't use the proxy. You have a paid account so you do not need to.

glenn, man it work, thanks.

Glad to hear that!