Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Apr 17, 2024
1 parent e1ef170 commit 0f47cb4
Show file tree
Hide file tree
Showing 157 changed files with 1,899 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"url": "https:\/\/api.telegram.org\/bot3f3814e1-5836-3d77-904e-60f64b15df36\/sendMessage",
"payload": {
"text": "foobar",
"chat_id": "-123456789",
"parse_mode": "html",
"reply_markup": {
"keyboard": [
[
{
"text": "foo",
"request_contact": true
}
]
],
"resize_keyboard": true
}
},
"files": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"url": "https:\/\/api.telegram.org\/bot3f3814e1-5836-3d77-904e-60f64b15df36\/sendMessage",
"payload": {
"text": "foobar",
"chat_id": "-123456789",
"parse_mode": "html",
"reply_markup": {
"keyboard": [
[
{
"text": "foo 1",
"request_contact": true
},
{
"text": "foo 2",
"request_contact": true
}
],
[
{
"text": "foo 3",
"request_contact": true
}
]
],
"resize_keyboard": true
}
},
"files": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": 5190249747,
"is_bot": true,
"first_name": "telegraph-test",
"username": "defstudio_test_bot",
"can_join_groups": true,
"can_read_all_group_messages": false,
"supports_inline_queries": true,
"can_connect_to_business": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ok":true,"result":{"message_id":41302,"sender_chat":{"id":"-123456789","title":"Test Chat","type":"channel"},"date":1645952240,"text":"foo"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"url": "https:\/\/api.telegram.org\/bot3f3814e1-5836-3d77-904e-60f64b15df36\/answerInlineQuery",
"payload": {
"inline_query_id": "99",
"results": [
{
"gif_url": "https:\/\/gif.dev",
"thumb_url": "https:\/\/gif-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "gif"
},
{
"photo_url": "https:\/\/photo.dev",
"thumb_url": "https:\/\/photo-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "photo"
},
{
"phone_number": "399999999",
"first_name": "testFirstName",
"id": "42",
"type": "contact"
},
{
"title": "testTitle",
"input_message_content": {
"message_text": "testMessage",
"parse_mode": "html"
},
"id": "42",
"type": "article"
},
{
"mpeg4_url": "testMpeg4Url",
"thumb_url": "testThumbUrl",
"parse_mode": "html",
"id": "42",
"type": "mpeg4_gif"
},
{
"video_url": "testVideoUrl",
"mime_type": "testMimeType",
"thumb_url": "testThumbUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "video"
},
{
"audio_url": "testAudioUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "audio"
},
{
"voice_url": "testVoiceUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "voice"
},
{
"title": "testDocumentTitle",
"parse_mode": "html",
"document_url": "testDocumentUrl",
"mime_type": "testDocumentMimeType",
"id": "42",
"type": "document"
},
{
"title": "testLocationTitle",
"latitude": 10.5,
"longitude": 10.5,
"id": "42",
"type": "location"
}
]
},
"files": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"url": "https:\/\/api.telegram.org\/bot3f3814e1-5836-3d77-904e-60f64b15df36\/answerInlineQuery",
"payload": {
"inline_query_id": "99",
"results": [
{
"gif_url": "https:\/\/gif.dev",
"thumb_url": "https:\/\/gif-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "gif"
},
{
"photo_url": "https:\/\/photo.dev",
"thumb_url": "https:\/\/photo-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "photo"
},
{
"phone_number": "399999999",
"first_name": "testFirstName",
"id": "42",
"type": "contact"
},
{
"title": "testTitle",
"input_message_content": {
"message_text": "testMessage",
"parse_mode": "html"
},
"id": "42",
"type": "article"
},
{
"mpeg4_url": "testMpeg4Url",
"thumb_url": "testThumbUrl",
"parse_mode": "html",
"id": "42",
"type": "mpeg4_gif"
},
{
"video_url": "testVideoUrl",
"mime_type": "testMimeType",
"thumb_url": "testThumbUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "video"
},
{
"audio_url": "testAudioUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "audio"
},
{
"voice_url": "testVoiceUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "voice"
},
{
"title": "testDocumentTitle",
"parse_mode": "html",
"document_url": "testDocumentUrl",
"mime_type": "testDocumentMimeType",
"id": "42",
"type": "document"
},
{
"title": "testLocationTitle",
"latitude": 10.5,
"longitude": 10.5,
"id": "42",
"type": "location"
}
],
"switch_pm_text": "configure",
"switch_pm_parameter": "123456"
},
"files": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"url": "https:\/\/api.telegram.org\/bot3f3814e1-5836-3d77-904e-60f64b15df36\/answerInlineQuery",
"payload": {
"inline_query_id": "99",
"results": [
{
"gif_url": "https:\/\/gif.dev",
"thumb_url": "https:\/\/gif-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "gif"
},
{
"photo_url": "https:\/\/photo.dev",
"thumb_url": "https:\/\/photo-thumb.dev",
"parse_mode": "html",
"id": "42",
"type": "photo"
},
{
"phone_number": "399999999",
"first_name": "testFirstName",
"id": "42",
"type": "contact"
},
{
"title": "testTitle",
"input_message_content": {
"message_text": "testMessage",
"parse_mode": "html"
},
"id": "42",
"type": "article"
},
{
"mpeg4_url": "testMpeg4Url",
"thumb_url": "testThumbUrl",
"parse_mode": "html",
"id": "42",
"type": "mpeg4_gif"
},
{
"video_url": "testVideoUrl",
"mime_type": "testMimeType",
"thumb_url": "testThumbUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "video"
},
{
"audio_url": "testAudioUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "audio"
},
{
"voice_url": "testVoiceUrl",
"title": "testTitle",
"parse_mode": "html",
"id": "42",
"type": "voice"
},
{
"title": "testDocumentTitle",
"parse_mode": "html",
"document_url": "testDocumentUrl",
"mime_type": "testDocumentMimeType",
"id": "42",
"type": "document"
},
{
"title": "testLocationTitle",
"latitude": 10.5,
"longitude": 10.5,
"id": "42",
"type": "location"
}
],
"cache_time": 600
},
"files": []
}
Loading

0 comments on commit 0f47cb4

Please sign in to comment.