struct Tourmaline::Context
inherits Struct
#
Constructors#
Methods#
#edit_live_location(latitude : Float64, longitude : Float64, **kwargs)
#
(latitude : Float64, longitude : Float64, **kwargs)
Context aware live location editing
#message
#
Retuns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or nil
#message!
#
Returns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or raises an exception
#reply_with_animation(animation, **kwargs)
#
(animation, **kwargs)
Reply directly to the incoming message with a animation
#reply_with_audio(audio, **kwargs)
#
(audio, **kwargs)
Reply directly to the incoming message with a audio
#reply_with_basketball(**kwargs)
#
(**kwargs)
Reply directly to the incoming message with a basketball
#reply_with_contact(contact, **kwargs)
#
(contact, **kwargs)
Reply directly to the incoming message with a contact
#reply_with_document(document, **kwargs)
#
(document, **kwargs)
Reply directly to the incoming message with a document
#reply_with_invoice(invoice, **kwargs)
#
(invoice, **kwargs)
Reply directly to the incoming message with a invoice
#reply_with_location(latitude : Float64, longitude : Float64, **kwargs)
#
(latitude : Float64, longitude : Float64, **kwargs)
Reply directly to the incoming message with a location
#reply_with_media_group(media_group, **kwargs)
#
(media_group, **kwargs)
Reply directly to the incoming message with a media_group
#reply_with_photo(photo, **kwargs)
#
(photo, **kwargs)
Reply directly to the incoming message with a photo
#reply_with_poll(question : String, options : Array(String), **kwargs)
#
(question : String, options : Array(String), **kwargs)
Reply directly to the incoming message with a poll
#reply_with_slot_machine(**kwargs)
#
(**kwargs)
Reply directly to the incoming message with a slot_machine
#reply_with_sticker(sticker, **kwargs)
#
(sticker, **kwargs)
Reply directly to the incoming message with a sticker
#reply_with_venue(venue, **kwargs)
#
(venue, **kwargs)
Reply directly to the incoming message with a venue
#reply_with_video(video, **kwargs)
#
(video, **kwargs)
Reply directly to the incoming message with a video
#reply_with_video_note(video_note, **kwargs)
#
(video_note, **kwargs)
Reply directly to the incoming message with a video_note
#reply_with_voice(voice, **kwargs)
#
(voice, **kwargs)
Reply directly to the incoming message with a voice
#respond_with_location(latitude : Float64, longitude : Float64, **kwargs)
#
(latitude : Float64, longitude : Float64, **kwargs)
Respond with a location
#respond_with_poll(question : String, options : Array(String), **kwargs)
#
(question : String, options : Array(String), **kwargs)
Respond with a poll
#text!(strip_command = true)
#
(strip_command = true)
Get the message text, raise an exception if there is no message
#with_message
#
If the update contains a message, pass it to the block. Less boilerplate.