Tourmaline::NilPersistence
Inherits Tourmaline::Persistence < Reference < Object
The default persistence, which is no persistence. This is basically just a placeholder class that does absolutely nothing, but still allows persistence methods to be accessed.
Instance methods
Returns true if the chat with the provided username exists.
Fetches a chat by chat_id. Returns nil if the chat is not found.
Fetches a chat by username. Returns nil if the chat is not found.
Fetches a user by user_id. Returns nil if the user is not found.
Fetches a user by username. Returns nil if the user is not found.
Takes an Update object, pulls out all unique Chats and Users,
and uses update_user and update_chat on each of them respectively.
Gets called when the bot is initialized. This can be used for setup if you need access to the bot instance.