1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

remove redundant methods from FlowsUpdatesFilter

This commit is contained in:
InsanusMokrassar 2019-05-10 11:58:43 +08:00
parent ab2a3ea23f
commit 9ddecb99ee
2 changed files with 0 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package com.github.insanusmokrassar.TelegramBotAPI.updateshandlers
import com.github.insanusmokrassar.TelegramBotAPI.types.update.* import com.github.insanusmokrassar.TelegramBotAPI.types.update.*
import com.github.insanusmokrassar.TelegramBotAPI.types.update.MediaGroupUpdates.* import com.github.insanusmokrassar.TelegramBotAPI.types.update.MediaGroupUpdates.*
import com.github.insanusmokrassar.TelegramBotAPI.types.update.abstracts.Update
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdateReceiver import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdateReceiver
import kotlinx.coroutines.channels.BroadcastChannel import kotlinx.coroutines.channels.BroadcastChannel
import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.channels.Channel
@ -42,8 +41,6 @@ class FlowsUpdatesFilter {
preCheckoutQueryChannel.createUpdateReceiver() preCheckoutQueryChannel.createUpdateReceiver()
) )
val asUpdateReceiver: UpdateReceiver<Update> = filter.asUpdateReceiver
val messageChannelFlow: Flow<MessageUpdate> = messageChannel.asFlow() val messageChannelFlow: Flow<MessageUpdate> = messageChannel.asFlow()
val messageMediaGroupChannelFlow: Flow<MessageMediaGroupUpdate> = messageMediaGroupChannel.asFlow() val messageMediaGroupChannelFlow: Flow<MessageMediaGroupUpdate> = messageMediaGroupChannel.asFlow()
val editedMessageChannelFlow: Flow<EditMessageUpdate> = editedMessageChannel.asFlow() val editedMessageChannelFlow: Flow<EditMessageUpdate> = editedMessageChannel.asFlow()

View File

@ -5,7 +5,6 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.update.*
import com.github.insanusmokrassar.TelegramBotAPI.types.update.MediaGroupUpdates.* import com.github.insanusmokrassar.TelegramBotAPI.types.update.MediaGroupUpdates.*
import com.github.insanusmokrassar.TelegramBotAPI.types.update.abstracts.Update import com.github.insanusmokrassar.TelegramBotAPI.types.update.abstracts.Update
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdateReceiver import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdateReceiver
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesFilter
data class UpdatesFilter( data class UpdatesFilter(
private val messageCallback: UpdateReceiver<MessageUpdate>? = null, private val messageCallback: UpdateReceiver<MessageUpdate>? = null,