mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Adding missing parameters
This commit is contained in:
parent
06afd04b07
commit
6b972e2328
|
@ -608,6 +608,7 @@ class MessageMethods:
|
||||||
clear_draft: bool = False,
|
clear_draft: bool = False,
|
||||||
buttons: 'hints.MarkupLike' = None,
|
buttons: 'hints.MarkupLike' = None,
|
||||||
silent: bool = None,
|
silent: bool = None,
|
||||||
|
background: bool = None,
|
||||||
supports_streaming: bool = False,
|
supports_streaming: bool = False,
|
||||||
schedule: 'hints.DateLike' = None,
|
schedule: 'hints.DateLike' = None,
|
||||||
comment_to: 'typing.Union[int, types.Message]' = None
|
comment_to: 'typing.Union[int, types.Message]' = None
|
||||||
|
@ -701,6 +702,9 @@ class MessageMethods:
|
||||||
channel or not. Defaults to `False`, which means it will
|
channel or not. Defaults to `False`, which means it will
|
||||||
notify them. Set it to `True` to alter this behaviour.
|
notify them. Set it to `True` to alter this behaviour.
|
||||||
|
|
||||||
|
background (`bool`, optional):
|
||||||
|
Whether the message should be forwarded in background.
|
||||||
|
|
||||||
supports_streaming (`bool`, optional):
|
supports_streaming (`bool`, optional):
|
||||||
Whether the sent video supports streaming or not. Note that
|
Whether the sent video supports streaming or not. Note that
|
||||||
Telegram only recognizes as streamable some formats like MP4,
|
Telegram only recognizes as streamable some formats like MP4,
|
||||||
|
@ -821,6 +825,7 @@ class MessageMethods:
|
||||||
peer=entity,
|
peer=entity,
|
||||||
message=message.message or '',
|
message=message.message or '',
|
||||||
silent=silent,
|
silent=silent,
|
||||||
|
background=background,
|
||||||
reply_to_msg_id=utils.get_message_id(reply_to),
|
reply_to_msg_id=utils.get_message_id(reply_to),
|
||||||
reply_markup=markup,
|
reply_markup=markup,
|
||||||
entities=message.entities,
|
entities=message.entities,
|
||||||
|
@ -846,6 +851,7 @@ class MessageMethods:
|
||||||
reply_to_msg_id=utils.get_message_id(reply_to),
|
reply_to_msg_id=utils.get_message_id(reply_to),
|
||||||
clear_draft=clear_draft,
|
clear_draft=clear_draft,
|
||||||
silent=silent,
|
silent=silent,
|
||||||
|
background=background,
|
||||||
reply_markup=self.build_reply_markup(buttons),
|
reply_markup=self.build_reply_markup(buttons),
|
||||||
schedule_date=schedule
|
schedule_date=schedule
|
||||||
)
|
)
|
||||||
|
@ -874,6 +880,8 @@ class MessageMethods:
|
||||||
messages: 'typing.Union[hints.MessageIDLike, typing.Sequence[hints.MessageIDLike]]',
|
messages: 'typing.Union[hints.MessageIDLike, typing.Sequence[hints.MessageIDLike]]',
|
||||||
from_peer: 'hints.EntityLike' = None,
|
from_peer: 'hints.EntityLike' = None,
|
||||||
*,
|
*,
|
||||||
|
background: bool = None,
|
||||||
|
with_my_score: bool = None,
|
||||||
silent: bool = None,
|
silent: bool = None,
|
||||||
as_album: bool = None,
|
as_album: bool = None,
|
||||||
schedule: 'hints.DateLike' = None
|
schedule: 'hints.DateLike' = None
|
||||||
|
@ -906,6 +914,12 @@ class MessageMethods:
|
||||||
the person has the chat muted). Set it to `True` to alter
|
the person has the chat muted). Set it to `True` to alter
|
||||||
this behaviour.
|
this behaviour.
|
||||||
|
|
||||||
|
background (`bool`, optional):
|
||||||
|
Whether the message should be forwarded in background.
|
||||||
|
|
||||||
|
with_my_score (`bool`, optional):
|
||||||
|
Whether forwarded should contain your game score.
|
||||||
|
|
||||||
as_album (`bool`, optional):
|
as_album (`bool`, optional):
|
||||||
This flag no longer has any effect.
|
This flag no longer has any effect.
|
||||||
|
|
||||||
|
@ -980,6 +994,8 @@ class MessageMethods:
|
||||||
id=chunk,
|
id=chunk,
|
||||||
to_peer=entity,
|
to_peer=entity,
|
||||||
silent=silent,
|
silent=silent,
|
||||||
|
background=background,
|
||||||
|
with_my_score=with_my_score,
|
||||||
schedule_date=schedule
|
schedule_date=schedule
|
||||||
)
|
)
|
||||||
result = await self(req)
|
result = await self(req)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user