visciang / telegram

Telegram library for the Elixir language
MIT License
204 stars 27 forks source link

ChatBot resume #164

Closed visciang closed 11 months ago

visciang commented 11 months ago

You can resume a chat bot session.

Explicit resume API:

:ok = MyChatBot.resume(token, chat_id, resume_state)

Optional callback on resume:

@impl Telegram.ChatBot
def handle_resume(state) do
  # on resume logic
  {:ok, state}
end
coveralls commented 11 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 23270f87f3d8d582bdb3e5edbb05a5d0e11af0d9 on chat-bot-resume into 28166fb2305eab5edbf7f78e04edcdfe87c1229c on master.