feat: support reply to for Telegram (#8105)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Shivam Mishra
2023-10-20 13:14:20 +05:30
committed by GitHub
parent 7416bbb25e
commit b9694a0818
10 changed files with 146 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ RSpec.describe Channel::Telegram do
stub_request(:post, "https://api.telegram.org/bot#{telegram_channel.bot_token}/sendMessage")
.with(
body: 'chat_id=123&text=test&reply_markup='
body: 'chat_id=123&text=test&reply_markup=&reply_to_message_id='
)
.to_return(
status: 200,
@@ -32,7 +32,7 @@ RSpec.describe Channel::Telegram do
.with(
body: 'chat_id=123&text=test' \
'&reply_markup=%7B%22one_time_keyboard%22%3Atrue%2C%22inline_keyboard%22%3A%5B%5B%7B%22text%22%3A%22test%22%2C%22' \
'callback_data%22%3A%22test%22%7D%5D%5D%7D'
'callback_data%22%3A%22test%22%7D%5D%5D%7D&reply_to_message_id='
)
.to_return(
status: 200,