зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 19:35:52 +03:00
Add answer_pre_checkout_query helper (#118)
Этот коммит содержится в:
коммит произвёл
Max Melentiev
родитель
1cb3265371
Коммит
294d762785
@@ -39,6 +39,15 @@ module Telegram
|
|||||||
bot.answer_callback_query(params)
|
bot.answer_callback_query(params)
|
||||||
end
|
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.
|
# Edit message from callback query.
|
||||||
def edit_message(type, params = {})
|
def edit_message(type, params = {})
|
||||||
params =
|
params =
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user