Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nadia.send_message fix spec #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Nadia.send_message fix spec #79

wants to merge 1 commit into from

Conversation

dog-64
Copy link

@dog-64 dog-64 commented Oct 11, 2018

No description provided.

@@ -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!

@dog-64
Copy link
Author

dog-64 commented Oct 11, 2018 via email

@alexfilatov
Copy link

yeah, this makes sense for me now, thanks!
yes, we can communicate in Russian but here would be better in English =)

@rockneurotiko
Copy link
Contributor

According to the documentation of telegram api, it's integer or string, so it makes sense this change 😄

https://core.telegram.org/bots/api#available-methods

P.S: I prefer English, I have no idea of Russian 😂

@dog-64
Copy link
Author

dog-64 commented Oct 11, 2018 via email

@zhyu
Copy link
Owner

zhyu commented Oct 12, 2018

Hi, @dog-64

Thanks for contributing.

It seems your changes failed to pass the format check. Would you please look into it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants