Class

com.bot4s.telegram.methods

CreateNewStickerSet

Related Doc: package methods

Permalink

case class CreateNewStickerSet(userId: Int, name: String, title: String, pngSticker: InputFile, emojis: String, containsMasks: Option[Boolean] = None, maskPosition: Option[MaskPosition] = None) extends MultipartRequest[Boolean] with Product with Serializable

Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. Returns True on success.

userId

Integer User identifier of created sticker set owner

name

String Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters.

title

String Sticker set title, 1-64 characters

pngSticker

InputFile or String Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files

emojis

String One or more emoji corresponding to the sticker

containsMasks

Boolean Optional Pass True, if a set of mask stickers should be created

maskPosition

MaskPosition Optional Position where the mask should be placed on faces

Linear Supertypes
Serializable, Serializable, Product, Equals, MultipartRequest[Boolean], Request[Boolean], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CreateNewStickerSet
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MultipartRequest
  7. Request
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CreateNewStickerSet(userId: Int, name: String, title: String, pngSticker: InputFile, emojis: String, containsMasks: Option[Boolean] = None, maskPosition: Option[MaskPosition] = None)

    Permalink

    userId

    Integer User identifier of created sticker set owner

    name

    String Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters.

    title

    String Sticker set title, 1-64 characters

    pngSticker

    InputFile or String Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files

    emojis

    String One or more emoji corresponding to the sticker

    containsMasks

    Boolean Optional Pass True, if a set of mask stickers should be created

    maskPosition

    MaskPosition Optional Position where the mask should be placed on faces

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val containsMasks: Option[Boolean]

    Permalink

    Boolean Optional Pass True, if a set of mask stickers should be created

  7. val emojis: String

    Permalink

    String One or more emoji corresponding to the sticker

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getFiles: List[(String, InputFile)]

    Permalink
    Definition Classes
    CreateNewStickerSetMultipartRequest
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val maskPosition: Option[MaskPosition]

    Permalink

    MaskPosition Optional Position where the mask should be placed on faces

  14. def methodName: String

    Permalink

    Extract request URL from class name.

    Extract request URL from class name.

    Definition Classes
    Request
  15. val name: String

    Permalink

    String Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals).

    String Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val pngSticker: InputFile

    Permalink

    InputFile or String Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px.

    InputFile or String Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val title: String

    Permalink

    String Sticker set title, 1-64 characters

  22. val userId: Int

    Permalink

    Integer User identifier of created sticker set owner

  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MultipartRequest[Boolean]

Inherited from Request[Boolean]

Inherited from AnyRef

Inherited from Any

Ungrouped