All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.tgbotapi.utils.TelegramFakeUser.kt Maven / Gradle / Ivy

Go to download

Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API

There is a newer version: 24.0.1
Show newest version
package dev.inmo.tgbotapi.utils

import dev.inmo.tgbotapi.types.RawChatId
import dev.inmo.tgbotapi.types.UserId
import dev.inmo.tgbotapi.types.chat.CommonUser
import dev.inmo.tgbotapi.types.chat.User

val TelegramFakeUser = CommonUser(
    id = UserId(RawChatId.FakeUserId),
    firstName = "Telegram"
)

fun User.isFakeTelegramUser() = id == TelegramFakeUser.id && firstName == TelegramFakeUser.firstName





© 2015 - 2025 Weber Informatics LLC | Privacy Policy