Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Setting custom attributes such as 'check_update' on objects such as 'MessageHandler' of the PTB **library is deprecated.**

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start at efb_patch_middleware/init.py line 368, where self.handler.check_update is assigned, and inspect how the PTB MessageHandler is used. Reproduce the TelegramDeprecationWarning and determine whether the warning can be eliminated while preserving the middleware behavior; done means the warning no longer appears.

Written by the indexing model from the issue text.

Description

image

有个警告,不知道以后会不会有影响,日志:

Initializing middleware patch.PatchMiddleware...
May 27 09:34:09 oracle-centos-2 ehforwarderbot[30884]: /usr/local/lib/python3.6/site-packages/efb_patch_middleware/init.py:368: TelegramDeprecationWarning: Setting custom attributes such as 'check_update' on objects such as 'MessageHandler' of the PTB library is deprecated.
May 27 09:34:09 oracle-centos-2 ehforwarderbot[30884]: self.handler.check_update = self.check_update
May 27 09:34:09 oracle-centos-2 ehforwarderbot[30884]: 2022-05-27 09:34:09,113 [Level 99]: ehforwarderbot.main (main.init; main.py:167)

Dominant language
Python
Stars
6
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ehForwarderBot/efb-patch-middleware

All issues in ehForwarderBot/efb-patch-middleware

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.