Skip to content

ConnectionResetError with long running bot instance #1057

@ModischFabrications

Description

@ModischFabrications
  1. What version of pyTelegramBotAPI are you using? 3.7.4

  2. What OS are you using? probably Raspbian

  3. What version of python are you using? 3.6.9

A user of a bot of mine has problems where a long running instance is crashing regularly (ModischFabrications/MineGramBot#4). The issue seems to be in the session handling of pyTelegramBotAPI. I already looked at #483, but it does not seem to fix this problem. See the log attached to the issue for details.

A easy fix would be to wrap my call to bot.polling(none_stop=True) in a while loop and restart on error, but this is hardly a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions