Skip to content

Commit a7a5512

Browse files
committed
added answerWebAppQuery
1 parent 38f3867 commit a7a5512

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Telegram.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,18 @@ public function answerCallbackQuery(array $content): array
604604
return $this->endpoint('answerCallbackQuery', $content);
605605
}
606606

607+
/**
608+
* See <a href="https://core.telegram.org/bots/api#answerwebappquery</a> for the input values.
609+
*
610+
* @param $content array the request parameters as array
611+
*
612+
* @return array the JSON Telegram's reply.
613+
*/
614+
public function answerWebAppQuery(array $content): array
615+
{
616+
return $this->endpoint('answerWebAppQuery', $content);
617+
}
618+
607619
/**
608620
* See <a href="https://core.telegram.org/bots/api#setmycommands">setMyCommands</a> for the input values.
609621
*

0 commit comments

Comments
 (0)