mirror of
https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git
synced 2025-10-23 00:00:13 +00:00
0.13.0
This commit is contained in:
@@ -51,12 +51,12 @@ class DefaultAdminsCacheAPIRepo(
|
||||
}
|
||||
|
||||
override suspend fun getChatAdmins(chatId: ChatId): List<AdministratorChatMember>? = suspendCoroutine {
|
||||
actor.offer(GetChatAdminsRepoAction(chatId, it))
|
||||
actor.trySend(GetChatAdminsRepoAction(chatId, it))
|
||||
}
|
||||
override suspend fun setChatAdmins(chatId: ChatId, chatMembers: List<AdministratorChatMember>) = suspendCoroutine<Unit> {
|
||||
actor.offer(SetChatAdminsRepoAction(chatId, chatMembers, it))
|
||||
actor.trySend(SetChatAdminsRepoAction(chatId, chatMembers, it))
|
||||
}
|
||||
override suspend fun lastUpdate(chatId: ChatId): DateTime? = suspendCoroutine {
|
||||
actor.offer(GetUpdateDateTimeRepoAction(chatId, it))
|
||||
actor.trySend(GetUpdateDateTimeRepoAction(chatId, it))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user