We have made you a wrapper you can't refuse
2885 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_messageautodeletetimerchanged.py | 54 | def test_time_period_properties(self, PTB_TIMEDELTA): |
| LOW | tests/test_messageautodeletetimerchanged.py | 66 | def test_time_period_int_deprecated(self, recwarn, PTB_TIMEDELTA): |
| LOW | tests/test_botcommandscope.py | 55 | def test_type_enum_conversion(self, bot_command_scope): |
| LOW | tests/test_botcommandscope.py | 112 | def bot_command_scope_all_private_chats(): |
| LOW | tests/test_botcommandscope.py | 152 | def bot_command_scope_all_chat_administrators(): |
| LOW | tests/test_botcommandscope.py | 192 | def bot_command_scope_all_group_chats(): |
| LOW | tests/test_botcommandscope.py | 278 | def bot_command_scope_chat_administrators(): |
| LOW | tests/test_botcommandscope.py | 328 | def bot_command_scope_chat_member(): |
| LOW | tests/test_botcommandscope.py | 385 | def bot_command_scope_default(): |
| LOW | tests/test_version.py | 32 | def test_bot_api_version_and_info(self): |
| LOW | tests/test_menubutton.py | 51 | def test_type_enum_conversion(self, menu_button): |
| LOW | tests/conftest.py | 59 | def no_rerun_after_xfail_or_flood(error, name, test: pytest.Function, plugin): |
| LOW | tests/conftest.py | 68 | def pytest_collection_modifyitems(items: list[pytest.Item]): |
| LOW | tests/conftest.py | 95 | def _disallow_requests_in_without_request_tests(request): |
| LOW | tests/conftest.py | 292 | def _get_false_update_fixture_decorator_params(): |
| LOW | tests/test_suggestedpost.py | 44 | def suggested_post_parameters(): |
| LOW | tests/test_suggestedpost.py | 76 | def test_de_json_localization(self, offline_bot, raw_bot, tz_bot): |
| LOW | tests/test_suggestedpost.py | 144 | def test_type_enum_conversion(self): |
| LOW | tests/test_suggestedpost.py | 160 | def test_de_json_localization(self, offline_bot, raw_bot, tz_bot): |
| LOW | tests/test_suggestedpost.py | 488 | def test_de_json_localization(self, offline_bot, raw_bot, tz_bot): |
| LOW | tests/test_suggestedpost.py | 542 | def suggested_post_approval_failed(): |
| LOW | tests/test_messageorigin.py | 65 | def message_origin_hidden_user(): |
| LOW | tests/test_messageorigin.py | 139 | def test_de_json_required_args(self, offline_bot, message_origin_type): |
| LOW | tests/test_messageorigin.py | 166 | def test_de_json_messageorigin_localization( |
| LOW | tests/test_messageorigin.py | 182 | def test_de_json_invalid_type(self, message_origin_type, offline_bot): |
| LOW | tests/test_user.py | 184 | async def test_instance_method_get_profile_photos(self, monkeypatch, user): |
| LOW | tests/test_user.py | 199 | async def test_instance_method_get_profile_audios(self, monkeypatch, user): |
| LOW | tests/test_user.py | 214 | async def test_instance_method_pin_message(self, monkeypatch, user): |
| LOW | tests/test_user.py | 225 | async def test_instance_method_unpin_message(self, monkeypatch, user): |
| LOW | tests/test_user.py | 238 | async def test_instance_method_unpin_all_messages(self, monkeypatch, user): |
| LOW | tests/test_user.py | 253 | async def test_instance_method_send_message(self, monkeypatch, user): |
| LOW | tests/test_user.py | 264 | async def test_instance_method_send_message_draft(self, monkeypatch, user): |
| LOW | tests/test_user.py | 283 | async def test_instance_method_send_photo(self, monkeypatch, user): |
| LOW | tests/test_user.py | 294 | async def test_instance_method_send_media_group(self, monkeypatch, user): |
| LOW | tests/test_user.py | 307 | async def test_instance_method_send_audio(self, monkeypatch, user): |
| LOW | tests/test_user.py | 318 | async def test_instance_method_send_chat_action(self, monkeypatch, user): |
| LOW | tests/test_user.py | 331 | async def test_instance_method_send_contact(self, monkeypatch, user): |
| LOW | tests/test_user.py | 342 | async def test_instance_method_send_dice(self, monkeypatch, user): |
| LOW | tests/test_user.py | 353 | async def test_instance_method_send_document(self, monkeypatch, user): |
| LOW | tests/test_user.py | 364 | async def test_instance_method_send_game(self, monkeypatch, user): |
| LOW | tests/test_user.py | 375 | async def test_instance_method_send_invoice(self, monkeypatch, user): |
| LOW | tests/test_user.py | 400 | async def test_instance_method_send_location(self, monkeypatch, user): |
| LOW | tests/test_user.py | 411 | async def test_instance_method_send_sticker(self, monkeypatch, user): |
| LOW | tests/test_user.py | 422 | async def test_instance_method_send_video(self, monkeypatch, user): |
| LOW | tests/test_user.py | 433 | async def test_instance_method_send_venue(self, monkeypatch, user): |
| LOW | tests/test_user.py | 444 | async def test_instance_method_send_video_note(self, monkeypatch, user): |
| LOW | tests/test_user.py | 455 | async def test_instance_method_send_voice(self, monkeypatch, user): |
| LOW | tests/test_user.py | 466 | async def test_instance_method_send_animation(self, monkeypatch, user): |
| LOW | tests/test_user.py | 477 | async def test_instance_method_send_poll(self, monkeypatch, user): |
| LOW | tests/test_user.py | 488 | async def test_instance_method_send_copy(self, monkeypatch, user): |
| LOW | tests/test_user.py | 502 | async def test_instance_method_copy_message(self, monkeypatch, user): |
| LOW | tests/test_user.py | 516 | async def test_instance_method_get_user_chat_boosts(self, monkeypatch, user): |
| LOW | tests/test_user.py | 533 | async def test_instance_method_get_menu_button(self, monkeypatch, user): |
| LOW | tests/test_user.py | 551 | async def test_instance_method_set_menu_button(self, monkeypatch, user): |
| LOW | tests/test_user.py | 569 | async def test_instance_method_approve_join_request(self, monkeypatch, user): |
| LOW | tests/test_user.py | 586 | async def test_instance_method_decline_join_request(self, monkeypatch, user): |
| LOW | tests/test_user.py | 664 | async def test_instance_method_send_copies(self, monkeypatch, user): |
| LOW | tests/test_user.py | 678 | async def test_instance_method_copy_messages(self, monkeypatch, user): |
| LOW | tests/test_user.py | 694 | async def test_instance_method_forward_from(self, monkeypatch, user): |
| LOW | tests/test_user.py | 708 | async def test_instance_method_forward_to(self, monkeypatch, user): |
| 1315 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/telegram/_ownedgift.py | 303 | Returns the text in :attr:`text` from a given :class:`telegram.MessageEntity` of :attr:`entities`. Note |
| HIGH | src/telegram/_ownedgift.py | 328 | Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`. It contains entities fro |
| HIGH | src/telegram/_poll.py | 619 | This object contains information about a poll. Objects of this class are comparable in terms of equality. Two |
| HIGH | src/telegram/_poll.py | 873 | Returns the text in :attr:`explanation` from a given :class:`telegram.MessageEntity` of :attr:`explanation_entit |
| HIGH | src/telegram/_poll.py | 900 | Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`. It contains entities fro |
| HIGH | src/telegram/_poll.py | 974 | Returns the text in :attr:`description` from a given :class:`telegram.MessageEntity` of :attr:`description_entit |
| HIGH | src/telegram/_poll.py | 1003 | Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`. It contains entities fro |
| HIGH | src/telegram/_chatmember.py | 37 | Base class for Telegram ChatMember Objects. Currently, the following 6 types of chat members are supported: * : |
| HIGH | src/telegram/_telegramobject.py | 218 | Objects of this type are subscriptable with strings, where ``telegram_object["attribute_name"]`` is equ |
| HIGH | src/telegram/_bot.py | 892 | Do a request to the Telegram API. This method is here to make it easier to use new API methods that are not yet |
| HIGH | src/telegram/_bot.py | 1031 | Use this method to send text messages. Args: chat_id (:obj:`int` | :obj:`str`): |chat_id_channel| |
| HIGH | src/telegram/_bot.py | 1161 | Use this method to delete a message, including service messages, with the following limitations: |
| HIGH | src/telegram/_bot.py | 1223 | Use this method to stream a partial message to a user while the message is being generated. .. versiona |
| HIGH | src/telegram/_bot.py | 1286 | Use this method to delete multiple messages simultaneously. If some of the specified messages can't be |
| HIGH | src/telegram/_bot.py | 1336 | Use this method to forward messages of any kind. Service messages can't be forwarded. Note: |
| HIGH | src/telegram/_bot.py | 1424 | Use this method to forward messages of any kind. If some of the specified messages can't be found or fo |
| HIGH | src/telegram/_bot.py | 1506 | Use this method to send photos. .. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media> |
| HIGH | src/telegram/_bot.py | 1671 | Use this method to send audio files, if you want Telegram clients to display them in the music player. |
| HIGH | src/telegram/_bot.py | 1846 | Use this method to send general files. Bots can currently send files of any type of up to :tg- |
| HIGH | src/telegram/_bot.py | 2007 | Use this method to send static ``.WEBP``, animated ``.TGS``, or video ``.WEBM`` stickers. .. seealso:: |
| HIGH | src/telegram/_bot.py | 2153 | Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document) |
| HIGH | src/telegram/_bot.py | 2349 | As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method |
| HIGH | src/telegram/_bot.py | 2518 | Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). Bots can current |
| HIGH | src/telegram/_bot.py | 2699 | Use this method to send audio files, if you want Telegram clients to display the file as a playable voi |
| HIGH | src/telegram/_bot.py | 2864 | Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files ca |
| HIGH | src/telegram/_bot.py | 3053 | Use this method to send point on the map. Note: You can either supply a :paramref:`latitude` and :p |
| HIGH | src/telegram/_bot.py | 3388 | Use this method to send information about a venue. Note: * You can either supply :paramref:`venue`, |
| HIGH | src/telegram/_bot.py | 3556 | Use this method to send phone contacts. Note: You can either supply :paramref:`contact` or :paramre |
| HIGH | src/telegram/_bot.py | 3699 | Use this method to send a game. Args: chat_id (:obj:`int`): Unique identifier for the target chat. |
| HIGH | src/telegram/_bot.py | 3791 | Use this method when you need to tell the user that something is happening on the bot's side. The statu |
| HIGH | src/telegram/_bot.py | 3941 | Use this method to send answers to an inline query. No more than :tg-const:`telegram.InlineQuery.MAX_RE |
| HIGH | src/telegram/_bot.py | 4039 | Stores a message that can be sent by a user of a Mini App. .. versionadded:: 21.8 Args: us |
| HIGH | src/telegram/_bot.py | 4095 | Use this method to get a list of profile pictures for a user. Args: user_id (:obj:`int`): Unique id |
| HIGH | src/telegram/_bot.py | 4148 | Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can |
| HIGH | src/telegram/_bot.py | 4214 | Use this method to ban a user from a group, supergroup or a channel. In the case of supergroups and cha |
| HIGH | src/telegram/_bot.py | 4273 | Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the own |
| HIGH | src/telegram/_bot.py | 4317 | Use this method to unban a previously kicked user in a supergroup or channel. The user will *not* return to the |
| HIGH | src/telegram/_bot.py | 4360 | Use this method to unban a previously banned channel in a supergroup or channel. The bot must be an administrato |
| HIGH | src/telegram/_bot.py | 4403 | Use this method to send answers to callback queries sent from inline keyboards. The answer will be disp |
| HIGH | src/telegram/_bot.py | 4477 | Use this method to edit text and game messages. Note: * |editreplymarkup| * |b |
| HIGH | src/telegram/_bot.py | 4583 | Use this method to edit captions of messages. Note: * |editreplymarkup| * |bci |
| HIGH | src/telegram/_bot.py | 4660 | Use this method to edit animation, audio, document, photo, or video messages, or to add media to text m |
| HIGH | src/telegram/_bot.py | 4729 | Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bo |
| HIGH | src/telegram/_bot.py | 4789 | Use this method to receive incoming updates using long polling. Note: 1. This method will not work |
| HIGH | src/telegram/_bot.py | 4911 | Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there i |
| HIGH | src/telegram/_bot.py | 5023 | Use this method to remove webhook integration if you decide to switch back to :meth:`get_updates()`. |
| HIGH | src/telegram/_bot.py | 5060 | Use this method for your bot to leave a group, supergroup or channel. Args: chat_id (:obj:`int` | : |
| HIGH | src/telegram/_bot.py | 5094 | Use this method to get up to date information about the chat (current name of the user for one-on-one c |
| HIGH | src/telegram/_bot.py | 5135 | Use this method to get a list of administrators in a chat. .. versionchanged:: 20.0 Return |
| HIGH | src/telegram/_bot.py | 5176 | Use this method to get the number of members in a chat. .. versionadded:: 13.7 Args: chat_ |
| HIGH | src/telegram/_bot.py | 5212 | Use this method to get information about a member of a chat. The method is only guaranteed to work for other use |
| HIGH | src/telegram/_bot.py | 5349 | Use this method to set the score of the specified user in a game message. .. seealso:: :attr:`telegram |
| HIGH | src/telegram/_bot.py | 5410 | Use this method to get data for high score tables. Will return the score of the specified user and seve |
| HIGH | src/telegram/_bot.py | 5499 | Use this method to send invoices. Warning: As of API 5.2 :paramref:`start_parameter` is an optional |
| HIGH | src/telegram/_bot.py | 5704 | If you sent an invoice requesting a shipping address and the parameter :paramref:`send_invoice.is_flexi |
| HIGH | src/telegram/_bot.py | 5761 | Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmatio |
| HIGH | src/telegram/_bot.py | 5816 | Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of |
| HIGH | src/telegram/_bot.py | 5865 | Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup |
| HIGH | src/telegram/_bot.py | 5950 | Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administra |
| HIGH | src/telegram/_bot.py | 6073 | Use this method to set default chat permissions for all members. The bot must be an administrator in th |
| 169 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_messageautodeletetimerchanged.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_webappinfo.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_shared.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_botcommandscope.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_sentwebappmessage.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_version.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_menubutton.py | 1 | #!/usr/bin/env python |
| LOW | tests/conftest.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_suggestedpost.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_messageorigin.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_warnings.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_user.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_webappdata.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_keyboardbuttonrequest.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_forum.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_preparedkeyboardbutton.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_videochat.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_keyboardbuttonpolltype.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatfullinfo.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_userrating.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatmemberupdated.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_message.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatlocation.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_checklists.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_reply.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_dice.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_business_methods.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_directmessagepricechanged.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_paidmedia.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_gifts.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_botdescription.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_inputchecklist.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_webhookinfo.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatpermissions.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatinvitelink.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_enum_types.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_messageentity.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatjoinrequest.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_update.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_copytextbutton.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_loginurl.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chatmember.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_userprofilephotos.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_messageid.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_maybeinaccessiblemessage.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_managedbot.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_story.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_replykeyboardremove.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_chat.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_botcommand.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_error.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_business_classes.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_userprofileaudios.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_paidmessagepricechanged.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_proximityalerttriggered.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_telegramobject.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_reaction.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_slots.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_storyarea.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_writeaccessallowed.py | 1 | #!/usr/bin/env python |
| 409 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_official/helpers.py | 33 | |
| LOW | tests/request/test_request.py | 59 | |
| LOW | tests/request/test_request.py | 59 | |
| LOW | tests/request/test_request.py | 59 | |
| LOW | tests/request/test_request.py | 59 | |
| LOW | tests/request/test_request.py | 59 | |
| LOW | docs/auxil/sphinx_hooks.py | 41 | |
| LOW | docs/source/conf.py | 343 | |
| LOW | src/telegram/_chatboost.py | 35 | |
| LOW | src/telegram/_userprofileaudios.py | 29 | |
| LOW | src/telegram/_ownedgift.py | 38 | |
| LOW | src/telegram/_managedbot.py | 30 | |
| LOW | src/telegram/_webhookinfo.py | 31 | |
| LOW | src/telegram/_chatowner.py | 29 | |
| LOW | src/telegram/_chatjoinrequest.py | 34 | |
| LOW | src/telegram/_chatlocation.py | 30 | |
| LOW | src/telegram/_poll.py | 49 | |
| LOW | src/telegram/_chatfullinfo.py | 50 | |
| LOW | src/telegram/_chatmember.py | 33 | |
| LOW | src/telegram/_userprofilephotos.py | 29 | |
| LOW | src/telegram/_keyboardbutton.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 35 | |
| LOW | src/telegram/_callbackquery.py | 46 | |
| LOW | src/telegram/_callbackquery.py | 47 | |
| LOW | src/telegram/_chatbackground.py | 32 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 123 | |
| LOW | src/telegram/_bot.py | 142 | |
| LOW | src/telegram/__init__.py | 334 | |
| LOW | src/telegram/__init__.py | 334 | |
| LOW | src/telegram/__init__.py | 335 | |
| LOW | src/telegram/__init__.py | 336 | |
| LOW | src/telegram/__init__.py | 336 | |
| LOW | src/telegram/__init__.py | 337 | |
| LOW | src/telegram/__init__.py | 337 | |
| LOW | src/telegram/__init__.py | 337 | |
| LOW | src/telegram/__init__.py | 337 | |
| LOW | src/telegram/__init__.py | 337 | |
| 546 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/conftest.py | 0 | makes an regular bot instance with the given bot_info |
| HIGH | tests/ext/conftest.py | 0 | makes an regular bot instance with the given bot_info |
| HIGH | tests/ext/conftest.py | 0 | makes an regular bot instance with the given bot_info |
| HIGH | tests/test_bot.py | 0 | we can't test every single method easily, so we just test one. our linting will catch any unused args with the others. |
| HIGH | tests/test_bot.py | 0 | we can't test every single method easily, so we just test one. our linting will catch any unused args with the others. |
| HIGH | tests/test_bot.py | 0 | we can't test every single method easily, so we just test one. our linting will catch any unused args with the others. |
| HIGH | tests/test_bot.py | 0 | we can't test every single method easily, so we just test one. our linting will catch any unused args with the others. |
| HIGH | examples/conversationbot2.py | 0 | first, a few callback functions are defined. then, those functions are passed to the application and registered at their |
| HIGH | examples/persistentconversationbot.py | 0 | first, a few callback functions are defined. then, those functions are passed to the application and registered at their |
| HIGH | examples/conversationbot.py | 0 | first, a few callback functions are defined. then, those functions are passed to the application and registered at their |
| HIGH | examples/customwebhookbot/djangobot.py | 0 | custom callbackcontext class that makes `user_data` available for updates of type `webhookupdate`. |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | custom callbackcontext class that makes `user_data` available for updates of type `webhookupdate`. |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | custom callbackcontext class that makes `user_data` available for updates of type `webhookupdate`. |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | custom callbackcontext class that makes `user_data` available for updates of type `webhookupdate`. |
| HIGH | examples/customwebhookbot/djangobot.py | 0 | display a message with instructions on how to use this bot. |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | display a message with instructions on how to use this bot. |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | display a message with instructions on how to use this bot. |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | display a message with instructions on how to use this bot. |
| HIGH | examples/customwebhookbot/djangobot.py | 0 | handle incoming telegram updates by putting them into the `update_queue` |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | handle incoming telegram updates by putting them into the `update_queue` |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | handle incoming telegram updates by putting them into the `update_queue` |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | handle incoming telegram updates by putting them into the `update_queue` |
| HIGH | examples/customwebhookbot/djangobot.py | 0 | handle incoming webhook updates by also putting them into the `update_queue` if the required parameters were passed corr |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | handle incoming webhook updates by also putting them into the `update_queue` if the required parameters were passed corr |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | handle incoming webhook updates by also putting them into the `update_queue` if the required parameters were passed corr |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | handle incoming webhook updates by also putting them into the `update_queue` if the required parameters were passed corr |
| HIGH | examples/customwebhookbot/djangobot.py | 0 | for the health endpoint, reply with a simple plain text message. |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | for the health endpoint, reply with a simple plain text message. |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | for the health endpoint, reply with a simple plain text message. |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | for the health endpoint, reply with a simple plain text message. |
| HIGH | examples/customwebhookbot/quartbot.py | 0 | set up ptb application and a web application for handling the incoming requests. |
| HIGH | examples/customwebhookbot/flaskbot.py | 0 | set up ptb application and a web application for handling the incoming requests. |
| HIGH | examples/customwebhookbot/starlettebot.py | 0 | set up ptb application and a web application for handling the incoming requests. |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.gift_premium_subscription.month_count` parameter of :meth:`~tele |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.gift_premium_subscription.month_count` parameter of :meth:`~tele |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.gift_premium_subscription.month_count` parameter of :meth:`~tele |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.post_story.active_period`` parameter of :meth:`telegram.bot.post |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.post_story.active_period`` parameter of :meth:`telegram.bot.post |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.post_story.active_period`` parameter of :meth:`telegram.bot.post |
| HIGH | src/telegram/constants.py | 0 | :obj:`int`: possible value for :paramref:`~telegram.bot.post_story.active_period`` parameter of :meth:`telegram.bot.post |
| HIGH | src/telegram/constants.py | 0 | :obj:`str`: possible value for :paramref:`telegram.transactionpartneruser.transaction_type`. |
| HIGH | src/telegram/constants.py | 0 | :obj:`str`: possible value for :paramref:`telegram.transactionpartneruser.transaction_type`. |
| HIGH | src/telegram/constants.py | 0 | :obj:`str`: possible value for :paramref:`telegram.transactionpartneruser.transaction_type`. |
| HIGH | src/telegram/constants.py | 0 | :obj:`str`: possible value for :paramref:`telegram.transactionpartneruser.transaction_type`. |
| HIGH | src/telegram/constants.py | 0 | :obj:`str`: possible value for :paramref:`telegram.transactionpartneruser.transaction_type`. |
| HIGH | src/telegram/_inline/inputlocationmessagecontent.py | 0 | :const:`telegram.constants.locationlimit.horizontal_accuracy` .. versionadded:: 20.0 |
| HIGH | src/telegram/_inline/inlinequeryresultlocation.py | 0 | :const:`telegram.constants.locationlimit.horizontal_accuracy` .. versionadded:: 20.0 |
| HIGH | src/telegram/_files/location.py | 0 | :const:`telegram.constants.locationlimit.horizontal_accuracy` .. versionadded:: 20.0 |
| HIGH | src/telegram/_inline/inputlocationmessagecontent.py | 0 | :const:`telegram.constants.locationlimit.min_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/_inline/inlinequeryresultlocation.py | 0 | :const:`telegram.constants.locationlimit.min_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/_files/location.py | 0 | :const:`telegram.constants.locationlimit.min_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/_inline/inputlocationmessagecontent.py | 0 | :const:`telegram.constants.locationlimit.max_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/_inline/inlinequeryresultlocation.py | 0 | :const:`telegram.constants.locationlimit.max_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/_files/location.py | 0 | :const:`telegram.constants.locationlimit.max_heading` .. versionadded:: 20.0 |
| HIGH | src/telegram/ext/_handlers/shippingqueryhandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| HIGH | src/telegram/ext/_handlers/businessconnectionhandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| HIGH | src/telegram/ext/_handlers/chatjoinrequesthandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| HIGH | …legram/ext/_handlers/businessmessagesdeletedhandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| HIGH | src/telegram/ext/_handlers/paidmediapurchasedhandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| HIGH | src/telegram/ext/_handlers/pollhandler.py | 0 | determines whether an update should be passed to this handler's :attr:`callback`. args: update (:class:`telegram.update` |
| 8 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/request/test_request.py | 475 | # Create a new one instead of using the fixture so that the mocking can work |
| MEDIUM | docs/auxil/admonition_inserter.py | 38 | # Define the namespace for type resolution. This helps dealing with the internal imports that |
| MEDIUM | examples/arbitrarycallbackdatabot.py | 98 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/conversationbot2.py | 118 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/inlinekeyboard.py | 58 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/webappbot.py | 59 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/echobot.py | 33 | # Define a few command handlers. These usually take the two arguments update and |
| MEDIUM | examples/echobot.py | 56 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/persistentconversationbot.py | 135 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/inlinekeyboard2.py | 168 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/paymentbot.py | 141 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/chatmemberbot.py | 158 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/inlinebot.py | 36 | # Define a few command handlers. These usually take the two arguments update and |
| MEDIUM | examples/inlinebot.py | 82 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/passportbot.py | 113 | # Create the Application and pass it your token and private key |
| MEDIUM | examples/timerbot.py | 36 | # Define a few command handlers. These usually take the two arguments update and |
| MEDIUM | examples/timerbot.py | 95 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/errorhandlerbot.py | 73 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/pollbot.py | 161 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/nestedconversationbot.py | 309 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/deeplinking.py | 111 | # Create the Application and pass it your bot's token. |
| MEDIUM | examples/conversationbot.py | 141 | # Create the Application and pass it your bot's token. |
| MEDIUM | .github/workflows/release_pypi.yml | 125 | # Create a tag and a GitHub Release. The description is filled by the static template, we |
| MEDIUM | .github/workflows/chango.yml | 38 | # Create the new fragment |
| MEDIUM | .github/workflows/copilot-setup-steps.yml | 1 | # This file is for the copilot agent on Github. This helps to set up the development environment |
| MEDIUM | .github/workflows/release_test_pypi.yml | 127 | # Create a tag and a GitHub Release *draft*. The description is filled by the static |
| MEDIUM | src/telegram/_telegramobject.py | 545 | """This method is used for obtaining the attributes of the object. |
| MEDIUM | src/telegram/_bot.py | 851 | # Initialize request objects if not already done |
| MEDIUM | src/telegram/_bot.py | 639 | """This method is here to make ext.Defaults work. Because we need to be able to tell |
| MEDIUM | src/telegram/_reaction.py | 184 | """This class represents a reaction added to a message along with the number of times it was |
| MEDIUM | src/telegram/_messagereactionupdated.py | 38 | """This class represents reaction changes on a message with anonymous reactions. |
| MEDIUM | src/telegram/_messagereactionupdated.py | 105 | """This class represents a change of a reaction on a message performed by a user. |
| MEDIUM | src/telegram/ext/_jobqueue.py | 238 | """This method is used as a callback for the APScheduler jobs. |
| MEDIUM | src/telegram/ext/_jobqueue.py | 754 | """This class is a convenience wrapper for the jobs held in a :class:`telegram.ext.JobQueue`. |
| MEDIUM | src/telegram/ext/_extbot.py | 700 | """This method is called by Bot.answer_inline_query to build the actual results list. |
| MEDIUM | src/telegram/ext/_extbot.py | 730 | """This method is called by Bot.answer_inline_query to replace `DefaultValue(obj)` with |
| MEDIUM | src/telegram/ext/_utils/webhookhandler.py | 48 | # This module is not visible to users, so we log as Updater |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_paidmedia.py | 320 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 321 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 322 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 323 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 324 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 325 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 326 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 327 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 328 | # =========================================================================================== |
| MEDIUM | tests/test_paidmedia.py | 329 | # =========================================================================================== |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/auxil/bot_method_checks.py | 265 | except Exception as exc: |
| LOW | tests/auxil/bot_method_checks.py | 686 | except Exception as exc: |
| LOW | tests/ext/test_conversationhandler.py | 721 | except Exception as exc: |
| LOW | tests/ext/test_application.py | 2830 | except Exception as e: |
| LOW | docs/auxil/link_code.py | 45 | except Exception as exc: |
| LOW | docs/auxil/tg_const_role.py | 91 | except Exception as exc: |
| LOW | src/telegram/_bot.py | 412 | except Exception: |
| LOW | src/telegram/_bot.py | 4886 | except Exception as exc: |
| LOW | src/telegram/_utils/files.py | 94 | except Exception: |
| LOW | src/telegram/ext/_jobqueue.py | 1001 | except Exception as exc: |
| LOW | src/telegram/ext/_jobqueue.py | 1011 | except Exception as exc: |
| LOW | src/telegram/ext/_updater.py | 141 | except Exception: |
| LOW | src/telegram/ext/_updater.py | 309 | except Exception: |
| LOW | src/telegram/ext/_updater.py | 348 | except Exception as exc: |
| LOW | src/telegram/ext/_updater.py | 585 | except Exception: |
| MEDIUM | src/telegram/ext/_updater.py | 338 | def polling_action_cb() -> None: |
| LOW | src/telegram/ext/_application.py | 371 | except Exception: |
| LOW | src/telegram/ext/_application.py | 635 | except Exception: |
| LOW | src/telegram/ext/_application.py | 1183 | except Exception as exception: |
| LOW | src/telegram/ext/_application.py | 1287 | except Exception as exc: |
| LOW | src/telegram/ext/_application.py | 1324 | except Exception as exc: |
| LOW | src/telegram/ext/_application.py | 1903 | except Exception as exc: |
| LOW | src/telegram/ext/_application.py | 1931 | except Exception as exc: |
| LOW | src/telegram/ext/_picklepersistence.py | 265 | except Exception as exc: |
| LOW | src/telegram/ext/_picklepersistence.py | 277 | except Exception as exc: |
| MEDIUM | src/telegram/ext/_picklepersistence.py | 245 | def _load_singlefile(self) -> None: |
| LOW | src/telegram/ext/_baseupdateprocessor.py | 90 | except Exception: |
| LOW | src/telegram/ext/_utils/webhookhandler.py | 168 | except Exception as exc: |
| LOW | src/telegram/ext/_utils/stack.py | 60 | except Exception as exc: |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 667 | except Exception as exc: |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 702 | except Exception as exc: |
| LOW | src/telegram/request/_baserequest.py | 118 | except Exception: |
| LOW | src/telegram/request/_baserequest.py | 316 | except Exception as exc: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_bot.py | 553 | |
| LOW | tests/test_official/scraper.py | 85 | |
| LOW | tests/test_official/arg_type_checker.py | 96 | |
| LOW | tests/auxil/bot_method_checks.py | 59 | |
| LOW | tests/auxil/bot_method_checks.py | 273 | |
| LOW | tests/auxil/bot_method_checks.py | 431 | |
| LOW | tests/_files/test_sticker.py | 768 | |
| LOW | docs/auxil/admonition_inserter.py | 272 | |
| LOW | docs/auxil/admonition_inserter.py | 483 | |
| LOW | docs/auxil/admonition_inserter.py | 511 | |
| LOW | docs/auxil/sphinx_hooks.py | 63 | |
| LOW | docs/auxil/sphinx_hooks.py | 83 | |
| LOW | examples/chatmemberbot.py | 65 | |
| LOW | src/telegram/_telegramobject.py | 270 | |
| LOW | src/telegram/_telegramobject.py | 594 | |
| LOW | src/telegram/_bot.py | 638 | |
| LOW | src/telegram/_message.py | 2041 | |
| LOW | src/telegram/_message.py | 5324 | |
| LOW | src/telegram/_message.py | 5524 | |
| LOW | src/telegram/helpers.py | 45 | |
| LOW | src/telegram/_update.py | 497 | |
| LOW | src/telegram/_update.py | 652 | |
| LOW | src/telegram/_update.py | 725 | |
| LOW | src/telegram/_passport/encryptedpassportelement.py | 212 | |
| LOW | src/telegram/ext/_callbackdatacache.py | 328 | |
| LOW | src/telegram/ext/_extbot.py | 440 | |
| LOW | src/telegram/ext/_extbot.py | 729 | |
| LOW | src/telegram/ext/_application.py | 1021 | |
| LOW | src/telegram/ext/_application.py | 1248 | |
| LOW | src/telegram/ext/_application.py | 1685 | |
| LOW | src/telegram/ext/_application.py | 1854 | |
| LOW | src/telegram/ext/filters.py | 454 | |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 286 | |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 706 | |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 797 | |
| LOW | src/telegram/ext/_handlers/conversationhandler.py | 897 | |
| LOW | src/telegram/request/_baserequest.py | 259 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 74 | if ( # Check if the class name ends with 'WithRequest' and if it has no flaky marker |
| LOW | tests/test_bot.py | 4148 | # Check if we pinned 3 messages |
| LOW | tests/test_bot.py | 4146 | assert len(messages) == 3 # Check if we sent 3 messages |
| LOW | tests/test_bot.py | 4150 | assert all(i.done() for i in pinned_messages_tasks) # Check if all tasks are done |
| LOW | tests/test_bot.py | 4451 | # Check if its been deleted- |
| LOW | tests/test_official/test_official.py | 74 | # Check if parameter is present in our method |
| LOW | tests/test_official/test_official.py | 85 | # Check if type annotation is present |
| LOW | tests/test_official/test_official.py | 89 | # Check if type annotation is correct |
| LOW | tests/test_official/test_official.py | 165 | # Check if type annotation is present |
| LOW | tests/test_official/test_official.py | 170 | # Check if type annotation is correct |
| LOW | examples/paymentbot.py | 106 | # Verify if the payload matches, ensure it's from your bot |
| LOW | examples/paymentbot.py | 125 | # Verify if the payload matches, ensure it's from your bot |
| LOW | src/telegram/ext/_applicationbuilder.py | 1070 | # Check if concurrent updates is bool and convert to integer |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 60 | # When adding new extras, make sure to update `ext` and `all` accordingly |
| LOW | examples/inlinebot.py | 6 | Don't forget to enable inline mode with @BotFather |
| LOW | src/telegram/_passport/credentials.py | 180 | # We make sure to base64 decode the secret first. |
| LOW | src/telegram/ext/_defaults.py | 147 | # TODO: When dropping support, make sure to update _utils.datetime accordingly |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/request/test_requestparameter.py | 67 | ({True: None}, '{"true": null}'), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/chatmemberbot.py | 174 | # To reset this, simply pass `allowed_updates=[]` |
| MEDIUM | src/telegram/ext/__init__.py | 19 | """Extensions over the Telegram Bot API to facilitate bot making""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/telegram/ext/filters.py | 456 | # We need to check if the filters are data filters and if so return the merged data. |