Queer European MD passionate about IT
Преглед на файлове

Compliance with bot API 7.8

Davte преди 6 месеца
родител
ревизия
98fbbf0127
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      davtelepot/__init__.py
  2. 2 0
      davtelepot/api.py

+ 1 - 1
davtelepot/__init__.py

@@ -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.10.3"
+__version__ = "2.10.4"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 2 - 0
davtelepot/api.py

@@ -1593,6 +1593,7 @@ class TelegramBot:
         )
 
     async def pinChatMessage(self, chat_id: Union[int, str], message_id,
+                             business_connection_id: str = None,
                              disable_notification: bool = None):
         """Pin a message in a group, a supergroup, or a channel.
 
@@ -1608,6 +1609,7 @@ class TelegramBot:
         )
 
     async def unpinChatMessage(self, chat_id: Union[int, str],
+                               business_connection_id: str = None,
                                message_id: int = None):
         """Unpin a message in a group, a supergroup, or a channel.