Class

com.bot4s.telegram.methods

AddStickerToSet

Related Doc: package methods

Permalink

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

Use this method to add a new sticker to a set created by the bot. Returns True on success.

userId

Integer User identifier of sticker set owner

name

String Sticker set name

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

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. AddStickerToSet
  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 AddStickerToSet(userId: Int, name: String, pngSticker: InputFile, emojis: String, maskPosition: Option[MaskPosition] = None)

    Permalink

    userId

    Integer User identifier of sticker set owner

    name

    String Sticker set name

    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

    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 emojis: String

    Permalink

    String One or more emoji corresponding to the sticker

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

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

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

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

    Permalink
    Definition Classes
    AddStickerToSetMultipartRequest
  11. final def isInstanceOf[T0]: Boolean

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

    Permalink

    MaskPosition Optional Position where the mask should be placed on faces

  13. def methodName: String

    Permalink

    Extract request URL from class name.

    Extract request URL from class name.

    Definition Classes
    Request
  14. val name: String

    Permalink

    String Sticker set name

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. 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 »

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

    Permalink
    Definition Classes
    AnyRef
  20. val userId: Int

    Permalink

    Integer User identifier of sticker set owner

  21. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. 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