SuggestedPostParameters¶
- class telegram.SuggestedPostParameters(price=None, send_date=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectContains parameters of a post that is being suggested by the bot.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
priceandsend_dateare equal.Use In
Added in version 22.4.
- Parameters:
price (
telegram.SuggestedPostPrice, optional) – Proposed price for the post. If the field is omitted, then the post is unpaid.send_date (
datetime.datetime, optional) – Proposed send date of the post. If specified, then the date must be between300second and2678400seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within2678400seconds (30 days) at the sole discretion of the user who approves it. The default timezone of the bot is used for localization, which is UTC unlesstelegram.ext.Defaults.tzinfois used.
- price[source]¶
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
- send_date[source]¶
Optional. Proposed send date of the post. If specified, then the date must be between
300second and2678400seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within2678400seconds (30 days) at the sole discretion of the user who approves it. The default timezone of the bot is used for localization, which is UTC unlesstelegram.ext.Defaults.tzinfois used.- Type: