-
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
26 changed files
with
61,927 additions
and
65 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
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.
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
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/RemoveChatVerification.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 | ||
|
||
/** | ||
* Removes verification from a chat that is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. | ||
*/ | ||
@Serializable | ||
public data class RemoveChatVerification( | ||
/** | ||
* Unique identifier for the target chat or username of the target channel (in the format `@channelusername`) | ||
*/ | ||
public val chat_id: ChatId, | ||
) : Method<RemoveChatVerification, Boolean> by Companion { | ||
public companion object : Method<RemoveChatVerification, Boolean> { | ||
override val _deserializer: KSerializer<Response<Boolean>> = | ||
Response.serializer(Boolean.serializer()) | ||
|
||
override val _serializer: KSerializer<RemoveChatVerification> = serializer() | ||
|
||
override val _name: String = "removeChatVerification" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
core/src/generated/kotlin/io/heapy/kotbot/bot/method/RemoveUserVerification.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 kotlin.Boolean | ||
import kotlin.Long | ||
import kotlin.String | ||
import kotlinx.serialization.KSerializer | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.builtins.serializer | ||
|
||
/** | ||
* Removes verification from a user who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. | ||
*/ | ||
@Serializable | ||
public data class RemoveUserVerification( | ||
/** | ||
* Unique identifier of the target user | ||
*/ | ||
public val user_id: Long, | ||
) : Method<RemoveUserVerification, Boolean> by Companion { | ||
public companion object : Method<RemoveUserVerification, Boolean> { | ||
override val _deserializer: KSerializer<Response<Boolean>> = | ||
Response.serializer(Boolean.serializer()) | ||
|
||
override val _serializer: KSerializer<RemoveUserVerification> = serializer() | ||
|
||
override val _name: String = "removeUserVerification" | ||
} | ||
} |
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
34 changes: 34 additions & 0 deletions
34
core/src/generated/kotlin/io/heapy/kotbot/bot/method/VerifyChat.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,34 @@ | ||
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 | ||
|
||
/** | ||
* Verifies a chat [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. | ||
*/ | ||
@Serializable | ||
public data class VerifyChat( | ||
/** | ||
* Unique identifier for the target chat or username of the target channel (in the format `@channelusername`) | ||
*/ | ||
public val chat_id: ChatId, | ||
/** | ||
* Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description. | ||
*/ | ||
public val custom_description: String? = null, | ||
) : Method<VerifyChat, Boolean> by Companion { | ||
public companion object : Method<VerifyChat, Boolean> { | ||
override val _deserializer: KSerializer<Response<Boolean>> = | ||
Response.serializer(Boolean.serializer()) | ||
|
||
override val _serializer: KSerializer<VerifyChat> = serializer() | ||
|
||
override val _name: String = "verifyChat" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
core/src/generated/kotlin/io/heapy/kotbot/bot/method/VerifyUser.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,34 @@ | ||
package io.heapy.kotbot.bot.method | ||
|
||
import io.heapy.kotbot.bot.Method | ||
import io.heapy.kotbot.bot.Response | ||
import kotlin.Boolean | ||
import kotlin.Long | ||
import kotlin.String | ||
import kotlinx.serialization.KSerializer | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.builtins.serializer | ||
|
||
/** | ||
* Verifies a user [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. | ||
*/ | ||
@Serializable | ||
public data class VerifyUser( | ||
/** | ||
* Unique identifier of the target user | ||
*/ | ||
public val user_id: Long, | ||
/** | ||
* Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description. | ||
*/ | ||
public val custom_description: String? = null, | ||
) : Method<VerifyUser, Boolean> by Companion { | ||
public companion object : Method<VerifyUser, Boolean> { | ||
override val _deserializer: KSerializer<Response<Boolean>> = | ||
Response.serializer(Boolean.serializer()) | ||
|
||
override val _serializer: KSerializer<VerifyUser> = serializer() | ||
|
||
override val _name: String = "verifyUser" | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
group=io.heapy.kotbot | ||
version=1.2.0 | ||
version=1.3.0 | ||
kotlin.code.style=official |