Telegex.answer_pre_checkout_query
You're seeing just the function
answer_pre_checkout_query
, go back to Telegex module for more information.
Link to this function
answer_pre_checkout_query(pre_checkout_query_id, ok, optionals \\ [])
View SourceSpecs
answer_pre_checkout_query(String.t(), boolean(), [{:error_message, String.t()}]) :: {:ok, boolean()} | {:error, Telegex.Model.errors()}
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation
in the form of an Telegex.Model.Update
with the field pre_checkout_query.
Use this method to respond to such pre-checkout queries. On success, True is returned.
Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.