Package dev.inmo.tgbotapi.types.message.ChatEvents

Types

Link copied to clipboard
class ChannelChatCreated : ChannelEvent
Link copied to clipboard
class DeleteChatPhoto : PublicChatEvent
Link copied to clipboard
class GroupChatCreated(val migratedTo: ChatId?) : GroupEvent
Link copied to clipboard
data class LeftChatMember(val user: User) : PublicChatEvent, WithUser
Link copied to clipboard
data class MessageAutoDeleteTimerChanged(val newAutoDeleteTime: Seconds) : ChannelEvent, GroupEvent, SupergroupEvent, PrivateEvent
Link copied to clipboard
data class MigratedToSupergroup(val migratedFrom: ChatId) : SupergroupEvent

This event is sent when a group is converted to a supergroup.

Link copied to clipboard
data class NewChatMembers(val members: List<User>) : GroupEvent, SupergroupEvent
Link copied to clipboard
data class NewChatPhoto(val photo: Photo) : PublicChatEvent
Link copied to clipboard
data class NewChatTitle(val title: String) : PublicChatEvent
Link copied to clipboard
data class PinnedMessage(val message: Message) : CommonEvent
Link copied to clipboard
data class ProximityAlertTriggered(    val traveler: User,     val watcher: User,     val distance: Meters) : PublicChatEvent

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Link copied to clipboard
class SupergroupChatCreated(val migratedFrom: ChatId?) : SupergroupEvent
Link copied to clipboard
data class UserLoggedIn(val domain: String) : PrivateEvent
Link copied to clipboard
data class WebAppData(val data: String, val buttonText: String) : PrivateEvent

Properties

Link copied to clipboard
val MessageAutoDeleteTimerChanged.is24Hours: Boolean
Link copied to clipboard
val MessageAutoDeleteTimerChanged.is7Days: Boolean
Link copied to clipboard
val MessageAutoDeleteTimerChanged.isOff: Boolean