Module telegram-bot-lua.methods.suggested_posts

suggested_posts API methods.

Functions

api.approve_suggested_post(suggested_post_id) approve a suggested post in a channel.
api.decline_suggested_post(suggested_post_id, opts) decline a suggested post in a channel.


Functions

api.approve_suggested_post(suggested_post_id)
approve a suggested post in a channel.

Parameters:

  • suggested_post_id string unique identifier of the suggested post

Returns:

  1. table|false true on success, or false on failure
  2. string|table the HTTP status or error details
api.decline_suggested_post(suggested_post_id, opts)
decline a suggested post in a channel.

Parameters:

  • suggested_post_id string unique identifier of the suggested post
  • opts table optional parameters (reason)

Returns:

  1. table|false true on success, or false on failure
  2. string|table the HTTP status or error details
generated by LDoc 1.5.0 Last updated 2026-04-07 21:37:15