ExGram.Middleware.IgnoreUsername (ex_gram v0.55.1)

View Source

Middleware that ignore the username in the command parameter.

/command@bot_username will be transformed to /command before handling the message

Summary

Functions

Callback implementation for ExGram.Middleware.call/2.

Callback implementation for ExGram.Middleware.init/1.

Functions

call(cnt, arg2)

Callback implementation for ExGram.Middleware.call/2.

init(opts)

Callback implementation for ExGram.Middleware.init/1.