pythontelegrambotgroup | Unsorted

Telegram-канал pythontelegrambotgroup - >>> telegram.Bot()

10206

This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org

Subscribe to a channel

>>> telegram.Bot()

afair it's not possible

Читать полностью…

>>> telegram.Bot()

I moved this discussion to the off-topic group.

Читать полностью…

>>> telegram.Bot()

The DPI is 50/50. Sometimes it decides to block stuff, sometimes it doesnt.

Читать полностью…

>>> telegram.Bot()

if it will have problems there i will run it with logging.DEBUG and see what happens then

Читать полностью…

>>> telegram.Bot()

No systemd, no docker

Читать полностью…

>>> telegram.Bot()

I see systemd services in my nightmares. No, I haven't tried that yet. Trying to run on a different server in a less strict network environment (a VPS in Germany instead of my file server in Russia). Also the network mode was set to host so docker shouldn't have used any virtual interfaces.

Читать полностью…

>>> telegram.Bot()

There is nothing wrong in the bot code, must be something else. Have you tried running without docker, just to see if you can replicate the problem?

Читать полностью…

>>> telegram.Bot()

trust_env variable makes it inherit http_proxy

Читать полностью…

>>> telegram.Bot()

That’s how I use it.

Читать полностью…

>>> telegram.Bot()

Just put the proxy in the aiohttp client.

Also move your http session outside and just reuse it.


session = aiohttp.ClientSession()

# Inside your functions since it’s reusable.

async with session.get() as resp:
return resp

Читать полностью…

>>> telegram.Bot()

Ah, looks like 5 minutes and 30 seconds on binding to socket.

Читать полностью…

>>> telegram.Bot()

Yeah but it’s 200 OK so I think the problem is in the processing.

Читать полностью…

>>> telegram.Bot()

both admins, separate groups though, one has an upgraded username and one doesn't

Читать полностью…

>>> telegram.Bot()

Is anyone else noticing bot message edits showing in recent actions? For some reason on one bot it's not showing any recent actions but on the main bot it's causing a lot of recent actions

Читать полностью…

>>> telegram.Bot()

Where can I find source code for a Telegram shop bot? If you have any links or GitHub repositories, I'd really appreciate it if you could share them.

Читать полностью…

>>> telegram.Bot()

Can a bot know which user is its owner, as in the person who created it though botfather?

Читать полностью…

>>> telegram.Bot()

Which vps provides unmetered bandwidth and port speed more than 1gpps and cheap price

Читать полностью…

>>> telegram.Bot()

If your thesis is right (blocked by ISP) you should not see the 200 response or you should see error log messages.

Читать полностью…

>>> telegram.Bot()

well i started it on my vps

Читать полностью…

>>> telegram.Bot()

Indeed, but just for debug only, you can run directly the python process and monitor for a day or two

Читать полностью…

>>> telegram.Bot()

First rule of debugging is strip any unnecessary part

Читать полностью…

>>> telegram.Bot()

Ahh I dont use that since I have to retry the request with other proxy if it fails.

Читать полностью…

>>> telegram.Bot()

You can also put the proxy inside the ClientSession() using TCPConnector

Читать полностью…

>>> telegram.Bot()

Doesnt aiohttp session require with? I remember trying it that way years ago but it didnt work :(

Читать полностью…

>>> telegram.Bot()

But that would mean A LOT of requests get piled up that it got stuck yesterday at 17.

Читать полностью…

>>> telegram.Bot()

It may be that klipy api is getting randomly blocked by my ISP and the requests to it get stuck? I need some more logging to be sure. Aiohttp doesnt trust http_proxy env var by default according to google

Читать полностью…

>>> telegram.Bot()

i hope it's not another case of upgraded usernames giving unintended side effects

Читать полностью…

>>> telegram.Bot()

Is one an admin and one not?

Читать полностью…

>>> telegram.Bot()

I moved this discussion to the off-topic group.

Читать полностью…

>>> telegram.Bot()

Ah I have discovered the @BotSupport account

Читать полностью…
Subscribe to a channel