Class

com.bot4s.telegram.models

Update

Related Doc: package models

Permalink

case class Update(updateId: Long, message: Option[Message] = None, editedMessage: Option[Message] = None, channelPost: Option[Message] = None, editedChannelPost: Option[Message] = None, inlineQuery: Option[InlineQuery] = None, chosenInlineResult: Option[ChosenInlineResult] = None, callbackQuery: Option[CallbackQuery] = None, shippingQuery: Option[ShippingQuery] = None, preCheckoutQuery: Option[PreCheckoutQuery] = None, poll: Option[Poll] = None) extends Product with Serializable

This object represents an incoming update. At most one of the optional parameters can be present in any given update.

updateId

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order.

message

Optional New incoming message of any kind - text, photo, sticker, etc.

editedMessage

Optional. New version of a message that is known to the bot and was edited

channelPost

Message Optional. New incoming channel post of any kind - text, photo, sticker, etc.

editedChannelPost

Message Optional. New version of a channel post that is known to the bot and was edited

inlineQuery

InlineQuery Optional New incoming inline query

chosenInlineResult

ChosenInlineResult Optional The result of a inline query that was chosen by a user and sent to their chat partner

callbackQuery

Optional New incoming callback query

shippingQuery

ShippingQuery Optional. New incoming shipping query. Only for invoices with flexible price

preCheckoutQuery

PreCheckoutQuery Optional. New incoming pre-checkout query. Contains full information about checkout

poll

Poll Optional. New poll state. Bots receive only updates about polls, which are sent or stopped by the bot

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Update
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Update(updateId: Long, message: Option[Message] = None, editedMessage: Option[Message] = None, channelPost: Option[Message] = None, editedChannelPost: Option[Message] = None, inlineQuery: Option[InlineQuery] = None, chosenInlineResult: Option[ChosenInlineResult] = None, callbackQuery: Option[CallbackQuery] = None, shippingQuery: Option[ShippingQuery] = None, preCheckoutQuery: Option[PreCheckoutQuery] = None, poll: Option[Poll] = None)

    Permalink

    updateId

    The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order.

    message

    Optional New incoming message of any kind - text, photo, sticker, etc.

    editedMessage

    Optional. New version of a message that is known to the bot and was edited

    channelPost

    Message Optional. New incoming channel post of any kind - text, photo, sticker, etc.

    editedChannelPost

    Message Optional. New version of a channel post that is known to the bot and was edited

    inlineQuery

    InlineQuery Optional New incoming inline query

    chosenInlineResult

    ChosenInlineResult Optional The result of a inline query that was chosen by a user and sent to their chat partner

    callbackQuery

    Optional New incoming callback query

    shippingQuery

    ShippingQuery Optional. New incoming shipping query. Only for invoices with flexible price

    preCheckoutQuery

    PreCheckoutQuery Optional. New incoming pre-checkout query. Contains full information about checkout

    poll

    Poll Optional. New poll state. Bots receive only updates about polls, which are sent or stopped by the bot

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. val callbackQuery: Option[CallbackQuery]

    Permalink

    Optional New incoming callback query

  6. val channelPost: Option[Message]

    Permalink

    Message Optional.

    Message Optional. New incoming channel post of any kind - text, photo, sticker, etc.

  7. val chosenInlineResult: Option[ChosenInlineResult]

    Permalink

    ChosenInlineResult Optional The result of a inline query that was chosen by a user and sent to their chat partner

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val editedChannelPost: Option[Message]

    Permalink

    Message Optional.

    Message Optional. New version of a channel post that is known to the bot and was edited

  10. val editedMessage: Option[Message]

    Permalink

    Optional.

    Optional. New version of a message that is known to the bot and was edited

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. val inlineQuery: Option[InlineQuery]

    Permalink

    InlineQuery Optional New incoming inline query

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val message: Option[Message]

    Permalink

    Optional New incoming message of any kind - text, photo, sticker, etc.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val poll: Option[Poll]

    Permalink

    Poll Optional.

    Poll Optional. New poll state. Bots receive only updates about polls, which are sent or stopped by the bot

  21. val preCheckoutQuery: Option[PreCheckoutQuery]

    Permalink

    PreCheckoutQuery Optional.

    PreCheckoutQuery Optional. New incoming pre-checkout query. Contains full information about checkout

  22. val shippingQuery: Option[ShippingQuery]

    Permalink

    ShippingQuery Optional.

    ShippingQuery Optional. New incoming shipping query. Only for invoices with flexible price

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

    Permalink
    Definition Classes
    AnyRef
  24. val updateId: Long

    Permalink

    The update's unique identifier.

    The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order.

  25. final def wait(): Unit

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

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

Inherited from Any

Ungrouped