Skip to content

Commit

Permalink
fix: changed username format
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Nov 27, 2023
1 parent be7106d commit 5e1fd99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ application {
dependencies {
implementation(libs.ktgbotapi)
implementation(libs.meetacy.sdk.api.ktor)
implementation(libs.slf4j.simple)
}

val propertiesFile: File = rootProject.file("deploy.properties")
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/app/meetacy/telegram/bot/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ suspend fun main(): Unit = coroutineScope {

val token = System.getenv("BOT_TOKEN")
val secretBotKey = System.getenv("SECRET_KEY").let(::SecretTelegramBotKey)
val secretBotKeySize = 64

val bot = telegramBot(token)
val meetacy = MeetacyApi.production()
Expand Down Expand Up @@ -80,7 +79,7 @@ suspend fun main(): Unit = coroutineScope {
temporalHash = TemporalTelegramHash(temporalHash),
secretBotKey = secretBotKey,
telegramId = message.from.id.chatId,
username = message.from.username?.username,
username = message.from.username?.usernameWithoutAt,
firstName = message.from.firstName,
lastName = message.from.lastName
)
Expand Down

0 comments on commit 5e1fd99

Please sign in to comment.