Skip to content

I get a warning every time I run it. #4804

Closed as not planned
Closed as not planned
@kadir5131

Description

@kadir5131

Steps to Reproduce

  1. I developed a logger for my own project and added the warnings in py.warnings
  2. every time I run the main code in my telegram bot I get this warning

Expected behaviour

not giving warning

Actual behaviour

giving warning

Operating System

Windows 11

Version of Python, python-telegram-bot & dependencies

3.12 
22.0

Relevant log output

WARNING  | 2025-05-25 22:26:12 | py.warnings | \Python312\Lib\site-packages\telegram\ext\_application.py:1024: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions