1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 09:46:17 +03:00

Add answer_pre_checkout_query helper (#118)

Этот коммит содержится в:
Muhammad Nuzaihan Bin Kamal Luddin
2019-07-01 01:39:43 +08:00
коммит произвёл Max Melentiev
родитель 1cb3265371
Коммит 294d762785

Просмотреть файл

@@ -39,6 +39,15 @@ module Telegram
bot.answer_callback_query(params)
end
# Same as reply_with, but for pre checkout queries.
def answer_pre_checkout_query(ok, params = {})
params = params.merge(
pre_checkout_query_id: payload['id'],
ok: ok,
)
bot.answer_pre_checkout_query(params)
end
# Edit message from callback query.
def edit_message(type, params = {})
params =