package syntax
- Alphabetic
- By Inheritance
- syntax
- Expects
- Contents
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait Contents extends AnyRef
- type Expect[A] = PartialFunction[TelegramMessage, A]
- final class ExpectTelegramMessageOps extends AnyVal
- final class ExpectTextMessageOps extends AnyVal
- trait Expects extends AnyRef
-
final
class
MethodSyntax[A] extends AnyVal
Syntax enhancement for using Telegram methods.
- final class PartialFunctionOps[A, B] extends AnyVal
Value Members
-
val
animation: Expect[Animation]
Partial function which matches only animation messages and returns contained animation
Partial function which matches only animation messages and returns contained animation
- Definition Classes
- Expects
-
val
animationMessage: Expect[AnimationMessage]
Partial function which matches only animation messages
Partial function which matches only animation messages
- Definition Classes
- Expects
-
implicit
def
animationMessageContent(animation: Animation): AnimationContent
- Definition Classes
- Contents
-
val
any: Expect[TelegramMessage]
Partial function which matches any incoming messages
Partial function which matches any incoming messages
- Definition Classes
- Expects
-
val
audio: Expect[Audio]
Partial function which matches only audio messages and returns contained audio
Partial function which matches only audio messages and returns contained audio
- Definition Classes
- Expects
-
val
audioMessage: Expect[AudioMessage]
Partial function which matches only audio messages
Partial function which matches only audio messages
- Definition Classes
- Expects
-
implicit
def
audioMessageContent(audio: Audio): AudioContent
- Definition Classes
- Contents
-
def
command(name: String): Expect[TextMessage]
Partial function which matches only text messages starting with a command with provided name
Partial function which matches only text messages starting with a command with provided name
- Definition Classes
- Expects
-
val
contact: Expect[Contact]
Partial function which matches only contact messages and returns contained contact
Partial function which matches only contact messages and returns contained contact
- Definition Classes
- Expects
-
val
contactMessage: Expect[ContactMessage]
Partial function which matches only contact messages
Partial function which matches only contact messages
- Definition Classes
- Expects
-
implicit
def
contactMessageContent(contact: Contact): ContactContent
- Definition Classes
- Contents
-
implicit
def
diceMessageContent(emoji: DiceEmoji): DiceContent
- Definition Classes
- Contents
-
val
diceResult: Expect[DiceResult]
Partial function which matches only dice thrown messages and returns result
Partial function which matches only dice thrown messages and returns result
- Definition Classes
- Expects
-
val
diceThrownMessage: Expect[DiceThrownMessage]
Partial function which matches only dice thrown messages
Partial function which matches only dice thrown messages
- Definition Classes
- Expects
-
val
document: Expect[Document]
Partial function which matches only document messages and returns contained document
Partial function which matches only document messages and returns contained document
- Definition Classes
- Expects
-
val
documentMessage: Expect[DocumentMessage]
Partial function which matches only document messages
Partial function which matches only document messages
- Definition Classes
- Expects
-
implicit
def
documentMessageContent(document: Document): DocumentContent
- Definition Classes
- Contents
- implicit def expectTelegramMessageOps(original: Expect[TelegramMessage]): ExpectTelegramMessageOps
- implicit def expectTextMessageOps(textMessage: Expect[TextMessage]): ExpectTextMessageOps
-
val
game: Expect[Game]
Partial function which matches only game messages and returns contained game
Partial function which matches only game messages and returns contained game
- Definition Classes
- Expects
-
val
gameMessage: Expect[GameMessage]
Partial function which matches only game messages
Partial function which matches only game messages
- Definition Classes
- Expects
-
val
location: Expect[Location]
Partial function which matches only location messages and returns contained location
Partial function which matches only location messages and returns contained location
- Definition Classes
- Expects
-
val
locationMessage: Expect[LocationMessage]
Partial function which matches only location messages
Partial function which matches only location messages
- Definition Classes
- Expects
-
implicit
def
locationMessageContent(location: Location): LocationContent
- Definition Classes
- Contents
- implicit def methodOps[A](a: A): MethodSyntax[A]
- implicit def partialFunctionOps[A, B](original: PartialFunction[A, B]): PartialFunctionOps[A, B]
-
val
photo: Expect[PhotoSize]
Partial function which matches only photo messages and returns contained photo
Partial function which matches only photo messages and returns contained photo
- Definition Classes
- Expects
-
val
photoMessage: Expect[PhotoMessage]
Partial function which matches only photo messages
Partial function which matches only photo messages
- Definition Classes
- Expects
-
implicit
def
photoMessageContent(photo: PhotoSize): PhotoContent
- Definition Classes
- Contents
-
val
poll: Expect[Poll]
Partial function which matches only poll messages and returns contained poll
Partial function which matches only poll messages and returns contained poll
- Definition Classes
- Expects
-
val
pollMessage: Expect[PollMessage]
Partial function which matches only poll messages
Partial function which matches only poll messages
- Definition Classes
- Expects
-
val
sticker: Expect[Sticker]
Partial function which matches only sticker messages and returns contained sticker
Partial function which matches only sticker messages and returns contained sticker
- Definition Classes
- Expects
-
val
stickerMessage: Expect[StickerMessage]
Partial function which matches only sticker messages
Partial function which matches only sticker messages
- Definition Classes
- Expects
-
implicit
def
stickerMessageContent(sticker: Sticker): StickerContent
- Definition Classes
- Contents
-
val
text: Expect[String]
Partial function which matches only text messages and returns contained text
Partial function which matches only text messages and returns contained text
- Definition Classes
- Expects
-
implicit
def
textContent(text: String): TextContent
- Definition Classes
- Contents
-
val
textMessage: Expect[TextMessage]
Partial function which matches only text messages
Partial function which matches only text messages
- Definition Classes
- Expects
-
val
venue: Expect[Venue]
Partial function which matches only venue messages and returns contained venue
Partial function which matches only venue messages and returns contained venue
- Definition Classes
- Expects
-
val
venueMessage: Expect[VenueMessage]
Partial function which matches only venue messages
Partial function which matches only venue messages
- Definition Classes
- Expects
-
implicit
def
venueMessageContent(venue: Venue): VenueContent
- Definition Classes
- Contents
-
val
video: Expect[Video]
Partial function which matches only video messages and returns contained video
Partial function which matches only video messages and returns contained video
- Definition Classes
- Expects
-
val
videoMessage: Expect[VideoMessage]
Partial function which matches only video messages
Partial function which matches only video messages
- Definition Classes
- Expects
-
implicit
def
videoMessageContent(video: Video): VideoContent
- Definition Classes
- Contents
-
val
videoNote: Expect[VideoNote]
Partial function which matches only video note messages and returns contained video note
Partial function which matches only video note messages and returns contained video note
- Definition Classes
- Expects
-
val
videoNoteMessage: Expect[VideoNoteMessage]
Partial function which matches only video note messages
Partial function which matches only video note messages
- Definition Classes
- Expects
-
implicit
def
videoNoteMessageContent(videoNote: VideoNote): VideoNoteContent
- Definition Classes
- Contents
-
val
voice: Expect[Voice]
Partial function which matches only voice messages and returns contained voice
Partial function which matches only voice messages and returns contained voice
- Definition Classes
- Expects
-
val
voiceMessage: Expect[VoiceMessage]
Partial function which matches only voice messages
Partial function which matches only voice messages
- Definition Classes
- Expects
-
implicit
def
voiceMessageContent(voice: Voice): VoiceContent
- Definition Classes
- Contents