CreateForumTopicAction

class CreateForumTopicAction(name: String, iconColor: IconColor? = null, iconCustomEmojiId: String? = null) : Action<ForumTopic>

Constructors

Link copied to clipboard
constructor(name: String, iconColor: IconColor? = null, iconCustomEmojiId: String? = null)

Properties

Link copied to clipboard
open override val Request<ForumTopic>.parameters: MutableMap<String, JsonElement>

Functions

Link copied to clipboard
open suspend override fun Request<ForumTopic>.doRequest(bot: TelegramBot)
Link copied to clipboard
open suspend override fun Request<ForumTopic>.doRequestReturning(bot: TelegramBot): Deferred<Response<out ForumTopic>>
Link copied to clipboard
inline suspend fun send(to: User, via: TelegramBot)
inline suspend fun send(to: Chat, via: TelegramBot)
suspend fun send(to: Long, via: TelegramBot)

suspend fun send(to: String, via: TelegramBot)

Make a request for action.

Link copied to clipboard
inline suspend fun sendAsync(to: User, via: TelegramBot): Deferred<Response<out ForumTopic>>
inline suspend fun sendAsync(to: Chat, via: TelegramBot): Deferred<Response<out ForumTopic>>
suspend fun sendAsync(to: Long, via: TelegramBot): Deferred<Response<out ForumTopic>>

suspend fun sendAsync(to: String, via: TelegramBot): Deferred<Response<out ForumTopic>>

Make a request for action returning its Response.

Link copied to clipboard
inline suspend fun sendReturning(to: User, via: TelegramBot): Deferred<Response<out ForumTopic>>
inline suspend fun sendReturning(to: Chat, via: TelegramBot): Deferred<Response<out ForumTopic>>
inline suspend fun sendReturning(to: Long, via: TelegramBot): Deferred<Response<out ForumTopic>>
inline suspend fun sendReturning(to: String, via: TelegramBot): Deferred<Response<out ForumTopic>>
Link copied to clipboard

Payload to make response for the webhook request as described there.