EDM115

Results 94 issues of EDM115

## Description An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable `_` or start the name with `unused` or `_unused`....

## Description If the except block catches a very general exception, it is likely to catch any unrelated errors too. Try to be more explicit about which exception(s) you're trying...

## Description Line length greater than configured `max_line_length` detected, defaults to 79 character. This limit can be configured [docs](https://deepsource.io/docs/analyzer/python/#meta) ## Occurrences There are 38 occurrences of this issue in the...

## Description The string statement has not been assigned to anything. This is pointless and should be removed if not necessary. In case this is supposed to describe what's happening...

## Description An unused variable takes up space in the code, and can lead to confusion, and it should be removed. If this variable is necessary, name the variable `_`...

## Description An object has been imported but is not used anywhere in the file. It should either be used or the import should be removed. ## Occurrences There are...

``` 2022-06-13T18:18:13.285191+00:00 app[worker.1]: 2022-06-13 18:18:13,284 - ERROR - pyrogram.dispatcher - MainThread - 'Message' object has no attribute 'message_id' 2022-06-13T18:18:13.285201+00:00 app[worker.1]: Traceback (most recent call last): 2022-06-13T18:18:13.285202+00:00 app[worker.1]: File "/usr/local/lib/python3.9/site-packages/pyrogram/dispatcher.py", line...

bug

``` 2022-06-13T15:44:31.859528+00:00 app[worker.1]: 2022-06-13 15:44:31,856 - ERROR - pyrogram.dispatcher - MainThread - Telegram says: [400 PEER_ID_INVALID] - The peer id being used is invalid or not known yet. Make sure...

bug

- [ ] [Service messages](https://docs.pyrogram.org/api/enums/MessageServiceType.html#pyrogram.enums.MessageServiceType) can't be forwarded. Or, we can copy them then send, but it's useless - [ ] Maybe use [Client.forward_messages()](https://docs.pyrogram.org/api/methods/forward_messages?highlight=forward#pyrogram.Client.forward_messages) instead of [Message.forward()](https://docs.pyrogram.org/api/bound-methods/Message.forward?highlight=forward) -> Less calls,...

enhancement

### Description There is an option on Settings -> Git which allows to connect to a GitHub account. However after a system restart, the connexion is gone. Note that :...

bug report
needs-additional info