-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
29,464 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
core/src/generated/kotlin/io/heapy/kotbot/bot/method/UnpinAllGeneralForumTopicMessages.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.heapy.kotbot.bot.method | ||
|
||
import io.heapy.kotbot.bot.Method | ||
import io.heapy.kotbot.bot.Response | ||
import io.heapy.kotbot.bot.model.ChatId | ||
import kotlin.Boolean | ||
import kotlin.String | ||
import kotlinx.serialization.KSerializer | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.builtins.serializer | ||
|
||
/** | ||
* Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the *can_pin_messages* administrator right in the supergroup. Returns *True* on success. | ||
*/ | ||
@Serializable | ||
public data class UnpinAllGeneralForumTopicMessages( | ||
/** | ||
* Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`) | ||
*/ | ||
public val chat_id: ChatId, | ||
) : Method<UnpinAllGeneralForumTopicMessages, Boolean> by Companion { | ||
public companion object : Method<UnpinAllGeneralForumTopicMessages, Boolean> { | ||
override val _deserializer: KSerializer<Response<Boolean>> = | ||
Response.serializer(Boolean.serializer()) | ||
|
||
override val _serializer: KSerializer<UnpinAllGeneralForumTopicMessages> = serializer() | ||
|
||
override val _name: String = "unpinAllGeneralForumTopicMessages" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.heapy.kotbot.bot.model | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* This object represents a message about a forwarded story in the chat. Currently holds no information. | ||
*/ | ||
@Serializable | ||
public class Story |