| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
closes #3372 add doctstring and move comment there
There was a problem hiding this comment.
copy_message and edit_message_caption still have those if clauses left to remove.
Sorry, something went wrong.
Yes, I agree on edit_message_caption(), but copy_message() calls Bot._post(), not Bot._send_message(), so not sure this change is applicable for copy_message() |
Sorry, something went wrong.
|
BTW a (maybe too) philosophical question. Can the fact that the generic ._send_message() method knows about other methods having parameters such as .caption (which pertain not to any message but to a specific type of message) be considered as breaking LoD? Maybe it's OK in this context because all of these params are part of official Telegram API. |
Sorry, something went wrong.
IMO this is not the case. _send_message just offers that parameter, but it doesn't really know if any other method actually uses it. |
Sorry, something went wrong.
change all methods except for `.copy_message()`, which doesn't call `._send_message()`
|
Added parse_mode as mentioned in this comment for #3372 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM except for the comment below :)
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
closes #3372
Not sure I need to add tests (I think in this case I just needed to make sure existing tests don't fail).