This repository was archived by the owner on Dec 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
1919import logging
20- from typing import Union , List
20+ from typing import Union , List , Optional
2121
2222from pyrogram import types
2323from pyrogram .scaffold import Scaffold
@@ -32,7 +32,7 @@ async def copy_message(
3232 from_chat_id : Union [int , str ],
3333 message_id : int ,
3434 caption : str = None ,
35- parse_mode : Union [str , None ] = object ,
35+ parse_mode : Optional [str ] = object ,
3636 caption_entities : List ["types.MessageEntity" ] = None ,
3737 disable_notification : bool = None ,
3838 reply_to_message_id : int = None ,
Original file line number Diff line number Diff line change @@ -2756,7 +2756,7 @@ async def copy(
27562756 self ,
27572757 chat_id : Union [int , str ],
27582758 caption : str = None ,
2759- parse_mode : Union [str , None ] = object ,
2759+ parse_mode : Optional [str ] = object ,
27602760 caption_entities : List ["types.MessageEntity" ] = None ,
27612761 disable_notification : bool = None ,
27622762 reply_to_message_id : int = None ,
You can’t perform that action at this time.
0 commit comments