Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/nadia.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule Nadia do
force a reply from the user - `Nadia.Model.ReplyKeyboardMarkup` or
`Nadia.Model.ReplyKeyboardHide` or `Nadia.Model.ForceReply`
"""
@spec send_message(integer, binary, [{atom, any}]) :: {:ok, Message.t()} | {:error, Error.t()}
@spec send_message(integer | binary, binary, [{atom, any}]) :: {:ok, Message.t()} | {:error, Error.t()}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @dog-64 , just curious, this is kind of a significant change, what stays behind it could you please give more details? thanks a lot!

def send_message(chat_id, text, options \\ []) do
request("sendMessage", [chat_id: chat_id, text: text] ++ options)
end
Expand Down