struct Tourmaline::Context
- Tourmaline::Context
- Struct
- Value
- Object
Defined in:
tourmaline/context.crConstructors
Instance Method Summary
- #answer_callback_query(**kwargs)
- #answer_inline_query(**kwargs)
- #answer_pre_checkout_query(**kwargs)
- #answer_shipping_query(**kwargs)
-
#api : Tourmaline::Client
Slightly shorter alias for the client
-
#callback_query(*args, **options)
Pass all update methods to the update object
-
#callback_query(*args, **options, &)
Pass all update methods to the update object
-
#callback_query?(*args, **options)
Pass all update methods to the update object
-
#callback_query?(*args, **options, &)
Pass all update methods to the update object
-
#channel_post(*args, **options)
Pass all update methods to the update object
-
#channel_post(*args, **options, &)
Pass all update methods to the update object
-
#channel_post?(*args, **options)
Pass all update methods to the update object
-
#channel_post?(*args, **options, &)
Pass all update methods to the update object
-
#chosen_inline_result(*args, **options)
Pass all update methods to the update object
-
#chosen_inline_result(*args, **options, &)
Pass all update methods to the update object
-
#chosen_inline_result?(*args, **options)
Pass all update methods to the update object
-
#chosen_inline_result?(*args, **options, &)
Pass all update methods to the update object
- #client : Client
-
#command
Get the command name, return nil if there is no message
-
#command!
Get the command name, raise an exception if there is no message
-
#delete_message(message_id : Int32)
Context aware message deletion
-
#edit_live_location(latitude : Float64, longitude : Float64, **kwargs)
Context aware live location editing
-
#edit_message(text : String, **kwargs)
Context aware editing
-
#edited_channel_post(*args, **options)
Pass all update methods to the update object
-
#edited_channel_post(*args, **options, &)
Pass all update methods to the update object
-
#edited_channel_post?(*args, **options)
Pass all update methods to the update object
-
#edited_channel_post?(*args, **options, &)
Pass all update methods to the update object
-
#edited_message(*args, **options)
Pass all update methods to the update object
-
#edited_message(*args, **options, &)
Pass all update methods to the update object
-
#edited_message?(*args, **options)
Pass all update methods to the update object
-
#edited_message?(*args, **options, &)
Pass all update methods to the update object
-
#forward_message(to_chat, **kwargs)
Context aware forward
-
#inline_query(*args, **options)
Pass all update methods to the update object
-
#inline_query(*args, **options, &)
Pass all update methods to the update object
-
#inline_query?(*args, **options)
Pass all update methods to the update object
-
#inline_query?(*args, **options, &)
Pass all update methods to the update object
-
#message
Retuns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or nil
-
#message(*args, **options)
Pass all update methods to the update object
-
#message(*args, **options, &)
Pass all update methods to the update object
-
#message!
Returns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or raises an exception
-
#message?(*args, **options)
Pass all update methods to the update object
-
#message?(*args, **options, &)
Pass all update methods to the update object
-
#pin_message(**kwargs)
Context aware pinning
-
#poll(*args, **options)
Pass all update methods to the update object
-
#poll(*args, **options, &)
Pass all update methods to the update object
-
#poll?(*args, **options)
Pass all update methods to the update object
-
#poll?(*args, **options, &)
Pass all update methods to the update object
-
#poll_answer(*args, **options)
Pass all update methods to the update object
-
#poll_answer(*args, **options, &)
Pass all update methods to the update object
-
#poll_answer?(*args, **options)
Pass all update methods to the update object
-
#poll_answer?(*args, **options, &)
Pass all update methods to the update object
-
#pre_checkout_query(*args, **options)
Pass all update methods to the update object
-
#pre_checkout_query(*args, **options, &)
Pass all update methods to the update object
-
#pre_checkout_query?(*args, **options)
Pass all update methods to the update object
-
#pre_checkout_query?(*args, **options, &)
Pass all update methods to the update object
-
#reply(text : String, **kwargs)
Reply directly to the incoming message
-
#reply_with_animation(animation, **kwargs)
Reply directly to the incoming message with a animation
-
#reply_with_audio(audio, **kwargs)
Reply directly to the incoming message with a audio
-
#reply_with_basketball(**kwargs)
Reply directly to the incoming message with a basketball
-
#reply_with_bowling(**kwargs)
Reply directly to the incoming message with a bowling
-
#reply_with_contact(contact, **kwargs)
Reply directly to the incoming message with a contact
-
#reply_with_dart(**kwargs)
Reply directly to the incoming message with a dart
-
#reply_with_dice(**kwargs)
Reply directly to the incoming message with a dice
-
#reply_with_document(document, **kwargs)
Reply directly to the incoming message with a document
-
#reply_with_football(**kwargs)
Reply directly to the incoming message with a football
-
#reply_with_invoice(invoice, **kwargs)
Reply directly to the incoming message with a invoice
-
#reply_with_location(latitude : Float64, longitude : Float64, **kwargs)
Reply directly to the incoming message with a location
-
#reply_with_media_group(media_group, **kwargs)
Reply directly to the incoming message with a media_group
-
#reply_with_photo(photo, **kwargs)
Reply directly to the incoming message with a photo
-
#reply_with_poll(question : String, options : Array(String), **kwargs)
Reply directly to the incoming message with a poll
-
#reply_with_slot_machine(**kwargs)
Reply directly to the incoming message with a slot_machine
-
#reply_with_sticker(sticker, **kwargs)
Reply directly to the incoming message with a sticker
-
#reply_with_venue(venue, **kwargs)
Reply directly to the incoming message with a venue
-
#reply_with_video(video, **kwargs)
Reply directly to the incoming message with a video
-
#reply_with_video_note(video_note, **kwargs)
Reply directly to the incoming message with a video_note
-
#reply_with_voice(voice, **kwargs)
Reply directly to the incoming message with a voice
-
#respond(text : String, **kwargs)
Respond to the incoming message
-
#respond_with_animation(animation, **kwargs)
Respond with a animation
-
#respond_with_audio(audio, **kwargs)
Respond with a audio
-
#respond_with_basketball(**kwargs)
Respond with a basketball
-
#respond_with_bowling(**kwargs)
Respond with a bowling
-
#respond_with_contact(contact, **kwargs)
Respond with a contact
-
#respond_with_dart(**kwargs)
Respond with a dart
-
#respond_with_dice(**kwargs)
Respond with a dice
-
#respond_with_document(document, **kwargs)
Respond with a document
-
#respond_with_football(**kwargs)
Respond with a football
-
#respond_with_invoice(invoice, **kwargs)
Respond with a invoice
-
#respond_with_location(latitude : Float64, longitude : Float64, **kwargs)
Respond with a location
-
#respond_with_media_group(media_group, **kwargs)
Respond with a media_group
-
#respond_with_photo(photo, **kwargs)
Respond with a photo
-
#respond_with_poll(question : String, options : Array(String), **kwargs)
Respond with a poll
-
#respond_with_slot_machine(**kwargs)
Respond with a slot_machine
-
#respond_with_sticker(sticker, **kwargs)
Respond with a sticker
-
#respond_with_venue(venue, **kwargs)
Respond with a venue
-
#respond_with_video(video, **kwargs)
Respond with a video
-
#respond_with_video_note(video_note, **kwargs)
Respond with a video_note
-
#respond_with_voice(voice, **kwargs)
Respond with a voice
-
#send_chat_action(action : String | ChatAction)
Context aware chat actions
-
#shipping_query(*args, **options)
Pass all update methods to the update object
-
#shipping_query(*args, **options, &)
Pass all update methods to the update object
-
#shipping_query?(*args, **options)
Pass all update methods to the update object
-
#shipping_query?(*args, **options, &)
Pass all update methods to the update object
-
#text(strip_command = true)
Get the message text, return nil if there is no message
-
#text!(strip_command = true)
Get the message text, raise an exception if there is no message
-
#unpin_message(**kwargs)
Context aware unpinning
- #update : Update
-
#with_message(&)
If the update contains a message, pass it to the block.
Constructor Detail
Instance Method Detail
Context aware live location editing
Retuns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or nil
Returns the message, edited_message, channel_post, edited_channel_post, callback_query.message, or raises an exception
Reply directly to the incoming message with a animation
Reply directly to the incoming message with a document
Reply directly to the incoming message with a location
Reply directly to the incoming message with a media_group
Reply directly to the incoming message with a poll
Reply directly to the incoming message with a video_note
Respond with a location