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:
- table|false true on success, or false on failure
- 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:
- table|false true on success, or false on failure
- string|table the HTTP status or error details