rockneurotiko/ex_gram

DSL should include a way to reply to messages

indocomsoft opened this issue · 1 comments

Using reply_to_message_id option in ExGram.send_message/3

You can do it with two easy lines:

msg_id = extract_response_id(msg)
cnt |> answer("Some text", reply_to_message_id: msg_id)