mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 22:14:50 +00:00
Merge pull request #100 from cactoe/main
fix: resolve TypeError by correctly positioning invert_media parameter
This commit is contained in:
commit
03226965ab
2 changed files with 4 additions and 4 deletions
|
|
@ -88,8 +88,8 @@ class EditInlineText:
|
|||
id=unpacked,
|
||||
no_webpage=disable_web_page_preview or None,
|
||||
reply_markup=await reply_markup.write(self) if reply_markup else None,
|
||||
**await self.parser.parse(text, parse_mode)
|
||||
**await self.parser.parse(text, parse_mode),
|
||||
invert_media=invert_media
|
||||
),
|
||||
sleep_threshold=self.sleep_threshold,
|
||||
invert_media=invert_media
|
||||
)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from typing import Union, BinaryIO
|
||||
from typing import Union, BinaryIO, List
|
||||
|
||||
import pyrogram
|
||||
from pyrogram import raw
|
||||
|
|
@ -29,7 +29,7 @@ class SetProfilePhoto:
|
|||
*,
|
||||
photo: Union[str, BinaryIO] = None,
|
||||
emoji: int = None,
|
||||
emoji_background: Union[int, list[int]] = None,
|
||||
emoji_background: Union[int, List[int]] = None,
|
||||
video: Union[str, BinaryIO] = None
|
||||
) -> bool:
|
||||
"""Set a new profile photo or video (H.264/MPEG-4 AVC video, max 5 seconds).
|
||||
|
|
|
|||
Loading…
Reference in a new issue