Instance methods
Caches data from the message returned from Telegram in the message History
Sourcedelete_message(receiver : UserID, message : MessageID) : Nil
Delete a message for receiver
Sourceedit_message_text(user : UserID, text : String, markup : Tourmaline::InlineKeyboardMarkup | Nil, message : MessageID) : Nil
Sourceget_chat(user : UserID) : Tourmaline::ChatFullInfo | Nil
Returns the full chat information for the given user
Sourcelog_output(text : String) : Nil
Prints text to the log and send it to the log_channel if it is set
Sourcepin_message(user : UserID, message : MessageID) : Nil
Pins the given message to the chat
Sourcepurge_messages(receiver : UserID, messages : Array(MessageID)) : Nil
Bulk dellete messages for a given receiver
Sourcereject_blacklisted_messages(user : UserID) : Nil
Remove messages from the queue that are sent by or addressed to user
Sourcereject_inactive_user_messages(user : UserID) : Nil
Remove messages from the queue that are addressed to user
SourceCalls the proc associated with the given message.
Returns a Tourmaline::Message when sending messages that are not albums
Returns an array of Tourmaline::Message for sent albums
Returns nil on sending a system message, Telegram giving us a boolean,
or encountering an error
Sourcesend_album(params : AlbumHelpers::AlbumRelayParameters) : Nil
Queues an album with the given params
Sourcesend_animation(params : RelayParameters) : Nil
Queues a GIF with the given params
Sourcesend_audio(params : RelayParameters) : Nil
Queues an audio message with the given params
Sourcesend_document(params : RelayParameters) : Nil
Queues a document with the given params
Sourcesend_forward(params : RelayParameters, message : MessageID) : Nil
Queues a forwarded message with the given params
Sourcesend_location(params : RelayParameters, location : Tourmaline::Location) : Nil
Queues a Tourmaline::Location with the given params
Sourcesend_message(services : Services) : Bool | Nil
Takes a message from the queue and sends it.
Returns true if queue is empty
Sourcesend_photo(params : RelayParameters) : Nil
Queues a photo with the given params
Sourcesend_poll_copy(reply :
MessageID, user :
User, effect :
String |
Nil, poll :
Tourmaline::Poll) :
Tourmaline::Message Sends a Tourmaline::Poll with the given parameters found in poll
Sourcesend_sticker(params : RelayParameters) : Nil
Queues a sticker with the given params
Sourcesend_text(params : RelayParameters) : Nil
Queues a text message with the given params
Sourcesend_to_channel(reply_message : MessageID | Nil, channel : String, text : String) : Nil
Relay a message to the log channel.
Sourcesend_to_user(reply_message : ReplyParameters | Nil, user : UserID, text : String, reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil) : Nil
Relay a message to a single user. Used for system messages.
Sourcesend_venue(params : RelayParameters, venue : Tourmaline::Venue) : Nil
Queues a Tourmaline::Venue with the given params
Sourcesend_video(params : RelayParameters) : Nil
Queues a video with the given params
Sourcesend_video_note(params : RelayParameters) : Nil
Queues a video note with the given params
Sourcesend_voice(params : RelayParameters) : Nil
Queues a voice message with the given params
Sourceset_log_channel(channel_id : String) : Nil
Set the log chanel ID to channel_id
Sourcestart_polling
Start polling Telegram for updates
Sourcestop_polling
Stop polling Telegram for updates
Sourceunpin_message(user : UserID, message : MessageID | Nil = nil) : Nil
Unpins the most recent message from the chat, or unpins the given message
Source