send_photo method should not require a chat_id since it can be passed an update object

This commit is contained in:
Davte 2020-12-11 08:21:57 +01:00
parent 4bf00f0cc5
commit e487764aad
Signed by: Davte
GPG Key ID: 209AE674A0007425
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0"
__version__ = "2.7.4"
__version__ = "2.7.5"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -1525,7 +1525,7 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
**message_identifier
)
async def send_photo(self, chat_id: Union[int, str], photo,
async def send_photo(self, photo, chat_id: Union[int, str] = None,
caption: str = None,
parse_mode: str = None,
caption_entities: List[dict] = None,