peyk.platforms.telegram.types.suggested_post_parameters

Classes

SuggestedPostParameters([price, send_date])

Contains parameters of a post that is being suggested by the bot.

class peyk.platforms.telegram.types.suggested_post_parameters.SuggestedPostParameters(price: object | None = None, send_date: int | None = None)[source]

Bases: object

Contains parameters of a post that is being suggested by the bot.

Variables:
  • price (object | None) – Proposed price for the post. If the field is omitted, then the post is unpaid.

  • send_date (int | None) – Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.

price: object | None = None
send_date: int | None = None
to_dict() Dict[str, object][source]

Provides the to dict operation for the Telegram integration.

Returns:

Result produced by the operation.