nadia v0.4.4 Nadia.Behaviour behaviour
Link to this section Summary
Link to this section Callbacks
Link to this callback
answer_callback_query(binary, list)
answer_callback_query(binary(), [{atom(), any()}]) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
answer_inline_query(binary, list, list)
answer_inline_query(binary(), [Nadia.Model.InlineQueryResult.t()], [ {atom(), any()} ]) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
edit_message_caption(arg0, integer, binary, list)
edit_message_caption(integer() | binary(), integer(), binary(), [ {atom(), any()} ]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
edit_message_reply_markup(arg0, integer, binary, list)
edit_message_reply_markup(integer() | binary(), integer(), binary(), [ {atom(), any()} ]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
edit_message_text(arg0, integer, binary, list)
edit_message_text(integer() | binary(), integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
forward_message(integer, integer, integer)
forward_message(integer(), integer(), integer()) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_chat(arg0)
get_chat(integer() | binary()) :: {:ok, Chat.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_chat_administrators(arg0)
get_chat_administrators(integer() | binary()) :: {:ok, [ChatMember.t()]} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_chat_member(arg0, integer)
get_chat_member(integer() | binary(), integer()) :: {:ok, ChatMember.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_chat_members_count(arg0)
get_chat_members_count(integer() | binary()) :: {:ok, integer()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_file(binary)
get_file(binary()) :: {:ok, Nadia.Model.File.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_file_link(arg0)
get_file_link(Nadia.Model.File.t()) :: {:ok, binary()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_me()
get_me() :: {:ok, Nadia.Model.User.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_updates(list)
get_updates([{atom(), any()}]) ::
{:ok, [Nadia.Model.Update.t()]} | {:error, Nadia.Model.Error.t()}
Link to this callback
get_user_profile_photos(integer, list)
get_user_profile_photos(integer(), [{atom(), any()}]) :: {:ok, Nadia.Model.UserProfilePhotos.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
kick_chat_member(arg0, integer)
kick_chat_member(integer() | binary(), integer()) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
leave_chat(arg0)
leave_chat(integer() | binary()) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
send_audio(integer, binary, list)
send_audio(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_chat_action(integer, binary)
send_chat_action(integer(), binary()) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
send_contact(integer, binary, binary, list)
send_contact(integer(), binary(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_document(integer, binary, list)
send_document(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_location(integer, float, float, list)
send_location(integer(), float(), float(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_message(integer, binary, list)
send_message(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_photo(integer, binary, list)
send_photo(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_sticker(integer, binary, list)
send_sticker(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_venue(integer, float, float, binary, binary, list)
send_venue(integer(), float(), float(), binary(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_video(integer, binary, list)
send_video(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
send_voice(integer, binary, list)
send_voice(integer(), binary(), [{atom(), any()}]) :: {:ok, Nadia.Model.Message.t()} | {:error, Nadia.Model.Error.t()}
Link to this callback
set_webhook(list)
set_webhook([{atom(), any()}]) :: :ok | {:error, Nadia.Model.Error.t()}
Link to this callback
unban_chat_member(arg0, integer)
unban_chat_member(integer() | binary(), integer()) :: :ok | {:error, Nadia.Model.Error.t()}