mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
default paid broadcast
This commit is contained in:
parent
9220570ac3
commit
c053427c70
2 changed files with 5 additions and 0 deletions
|
|
@ -533,6 +533,9 @@ class Bot:
|
|||
|
||||
await self.limiter.wait(chat_id=str(chat_id), chat_type=chat_type, is_broadcast=is_broadcast)
|
||||
|
||||
if hasattr(method, "allow_paid_broadcast") and method.allow_paid_broadcast is None:
|
||||
method.allow_paid_broadcast = self.default.paid_broadcast
|
||||
|
||||
return await self.session(self, method, timeout=request_timeout)
|
||||
|
||||
def __hash__(self) -> int:
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ class DefaultBotProperties:
|
|||
show_caption_above_media: Optional[bool] = None
|
||||
"""Show caption above media."""
|
||||
max_sends_per_secods: Optional[int] = None
|
||||
"""How many messages can bot send per second."""
|
||||
paid_broadcast: Optional[bool] = None
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
has_any_link_preview_option = any(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue