struct Tourmaline::Context
- Tourmaline::Context
- Struct
- Value
- Object
Defined in:
tourmaline/context.crConstructors
Instance Method Summary
-
#answer_query(*args, **kwargs)
Context aware query answer
-
#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
-
#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, **args)
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(**args)
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(*args, **kwargs)
Reply directly to the incoming message with a animation
-
#reply_with_audio(*args, **kwargs)
Reply directly to the incoming message with a audio
-
#reply_with_basketball(*args, **kwargs)
Reply directly to the incoming message with a basketball
-
#reply_with_contact(*args, **kwargs)
Reply directly to the incoming message with a contact
-
#reply_with_dart(*args, **kwargs)
Reply directly to the incoming message with a dart
-
#reply_with_dice(*args, **kwargs)
Reply directly to the incoming message with a dice
-
#reply_with_document(*args, **kwargs)
Reply directly to the incoming message with a document
-
#reply_with_invoice(*args, **kwargs)
Reply directly to the incoming message with a invoice
-
#reply_with_location(*args, **kwargs)
Reply directly to the incoming message with a location
-
#reply_with_media_group(*args, **kwargs)
Reply directly to the incoming message with a media_group
-
#reply_with_photo(*args, **kwargs)
Reply directly to the incoming message with a photo
-
#reply_with_poll(*args, **kwargs)
Reply directly to the incoming message with a poll
-
#reply_with_sticker(*args, **kwargs)
Reply directly to the incoming message with a sticker
-
#reply_with_venu(*args, **kwargs)
Reply directly to the incoming message with a venu
-
#reply_with_video(*args, **kwargs)
Reply directly to the incoming message with a video
-
#reply_with_video_note(*args, **kwargs)
Reply directly to the incoming message with a video_note
-
#reply_with_voice(*args, **kwargs)
Reply directly to the incoming message with a voice
-
#respond(text : String, **kwargs)
Respond to the incoming message
-
#respond_with_animation(*args, **kwargs)
Respond with a animation
-
#respond_with_audio(*args, **kwargs)
Respond with a audio
-
#respond_with_basketball(*args, **kwargs)
Respond with a basketball
-
#respond_with_contact(*args, **kwargs)
Respond with a contact
-
#respond_with_dart(*args, **kwargs)
Respond with a dart
-
#respond_with_dice(*args, **kwargs)
Respond with a dice
-
#respond_with_document(*args, **kwargs)
Respond with a document
-
#respond_with_invoice(*args, **kwargs)
Respond with a invoice
-
#respond_with_location(*args, **kwargs)
Respond with a location
-
#respond_with_media_group(*args, **kwargs)
Respond with a media_group
-
#respond_with_photo(*args, **kwargs)
Respond with a photo
-
#respond_with_poll(*args, **kwargs)
Respond with a poll
-
#respond_with_sticker(*args, **kwargs)
Respond with a sticker
-
#respond_with_venu(*args, **kwargs)
Respond with a venu
-
#respond_with_video(*args, **kwargs)
Respond with a video
-
#respond_with_video_note(*args, **kwargs)
Respond with a video_note
-
#respond_with_voice(*args, **kwargs)
Respond with a voice
-
#send_chat_action(action : 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(**args)
Context aware unpinning
- #update : Update
-
#with_message(&)
If the update contains a message, pass it to the block.
Constructor Detail
Instance Method Detail
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 basketball
Reply directly to the incoming message with a media_group
Reply directly to the incoming message with a video_note