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

telegramium.bots.client.BanChatMemberReq.scala Maven / Gradle / Ivy

There is a newer version: 9.711.0
Show newest version
package telegramium.bots.client

import telegramium.bots.ChatId

/** @param chatId
  *   Unique identifier for the target group or username of the target supergroup or channel (in the format
  *   @channelusername)
  * @param userId
  *   Unique identifier of the target user
  * @param untilDate
  *   Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds
  *   from the current time they are considered to be banned forever. Applied for supergroups and channels only.
  * @param revokeMessages
  *   Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able
  *   to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.
  */
final case class BanChatMemberReq(
  chatId: ChatId,
  userId: Long,
  untilDate: Option[Int] = Option.empty,
  revokeMessages: Option[Boolean] = Option.empty
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy