class Tourmaline::RegexFilter

Overview

Filters messages with text (message.text | message.caption) using a regular expression.

Options:

Context additions:

Example:

filter = RegexFilter.new(/^foo(\d+)/)

Defined in:

tourmaline/filters/regex_filter.cr

Constructors

Instance Method Summary

Instance methods inherited from class Tourmaline::Filter

&(other : Filter | FilterGroup) &, |(other : Filter | FilterGroup) |, exec(client : Client, update : Update) : Bool exec

Constructor Detail

def self.new(*expressions : Regex) #

[View source]

Instance Method Detail

def exec(client : Client, update : Update) : Bool #

[View source]