<?php
class DebugsManager
{
function __construct()
{
}
function getUpdateForTestPerson($debugUserID)
{
$updateProblem = array(
'update_id' => 370339442,
'message' =>
array(
'message_id' => 99721649,
'from' =>
array(
'id' => 974058313,
'is_bot' => false,
'first_name' => 'Elena🧜🏽♀️',
'last_name' => '🌻',
'language_code' => 'fa',
),
'chat' =>
array(
'id' => 974058313,
'first_name' => 'Elena🧜🏽♀️',
'last_name' => '🌻',
'type' => 'private',
),
'date' => 1569305993,
'text' => 'Hallo',
),
);
$update1 = array(
'update_id' => 310853147,
'message' => array(
'message_id' => 10,
'from' => array(
'id' => $debugUserID,
'first_name' => 'Saeed',
'username' => 'sinzed'
),
'chat' => array(
'id' => $debugUserID,
'first_name' => 'Saeed',
'username' => 'sinzed',
'type' => 'private'
),
'date' => 1481901731,
'text' => 'testad'
)
);
$update = array(
'update_id' => 310853411,
'callback_query' =>
array(
'id' => '192857965748151190',
'from' =>
array(
'id' => 44903244,
'first_name' => 'Saeed',
'username' => 'sinzed',
),
'message' =>
array(
'message_id' => 759,
'from' =>
array(
'id' => 287525955,
'first_name' => 'ربات خبر های آلمان',
'username' => 'khabaralman_bot',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => 'Saeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1482078484,
'text' => 'Nachricht0 Nach Skandal um Ex-Chefin - Bremer Unternehmen rettet Nordsee-Pflege Nordsee-Pflege-Chefin Gülsen Sariergin (37) wurde zu fünf Jahren Gefängnis verurteiltAufatmen für 180 Mitarbeiter und rund 600 Kunden: Die „Nordsee-Pflege" und sämtliche Arbeits- und Pflegeplätze sind so gut wie gerettet! Foto: Sandra Beckefeldt Sun, 18 Dec 2016 13:59:52 +0100',
'entities' =>
array(
0 =>
array(
'type' => 'bold',
'offset' => 11,
'length' => 68,
),
1 =>
array(
'type' => 'text_link',
'offset' => 79,
'length' => 1,
'url' => 'http://bilder.bild.de/fotos/nordsee-pflege-chefin-guelsen-sariergin-37-wurde-zu-fuenf-jahren-gefaengnis-verurteilt-200191517-49375400/Bild/2.bild.jpg',
),
2 =>
array(
'type' => 'pre',
'offset' => 325,
'length' => 33,
),
),
),
'chat_instance' => '6071330103816430450',
'data' => 'ww',
),
);
return $update1;
}
function getUpdateForTextTranslateCallBackDeDe($debugUserID)
{
return array(
'update_id' => 636283389,
'callback_query' =>
array(
'id' => '192857965481976670',
'from' =>
array(
'id' => 44903244,
'is_bot' => false,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'language_code' => 'en',
),
'message' =>
array(
'message_id' => 12648,
'from' =>
array(
'id' => 816983194,
'is_bot' => true,
'first_name' => 'trgerman3',
'username' => 'TranslateGerman3_bot',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1637326860,
'text' => 'wollen wir heute Abend telefonieren?',
'reply_markup' =>
array(
'inline_keyboard' =>
array(
0 =>
array(
0 =>
array(
'text' => 'برگردان به فارسی',
'callback_data' => 'deDeTextTrans:tr',
),
),
1 =>
array(
0 =>
array(
'text' => 'بازسازی متن',
'callback_data' => 'deDeTextTrans:tr',
),
),
),
),
),
'chat_instance' => '6045663049603071067',
'data' => 'deDeTextTrans',
),
);
}
function getUpdateForTextTranslateCallBack($debugUserID)
{
return array(
'update_id' => 636283389,
'callback_query' =>
array(
'id' => '192857965481976670',
'from' =>
array(
'id' => 44903244,
'is_bot' => false,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'language_code' => 'en',
),
'message' =>
array(
'message_id' => 12648,
'from' =>
array(
'id' => 816983194,
'is_bot' => true,
'first_name' => 'trgerman3',
'username' => 'TranslateGerman3_bot',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1637326860,
'text' => 'wollen wir heute Abend telefonieren?',
'reply_markup' =>
array(
'inline_keyboard' =>
array(
0 =>
array(
0 =>
array(
'text' => 'برگردان به فارسی',
'callback_data' => 'deFaTextTrans:tr',
),
),
1 =>
array(
0 =>
array(
'text' => 'بازسازی متن',
'callback_data' => 'deDeTextTrans:tr',
),
),
),
),
),
'chat_instance' => '6045663049603071067',
'data' => 'deFaTextTrans',
),
);
}
function getUpdateForTextTranslatePersianToGermanCallBack($debugUserID)
{
return array(
'update_id' => 636283389,
'callback_query' =>
array(
'id' => '192857965481976670',
'from' =>
array(
'id' => 44903244,
'is_bot' => false,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'language_code' => 'en',
),
'message' =>
array(
'message_id' => 12648,
'from' =>
array(
'id' => 816983194,
'is_bot' => true,
'first_name' => 'trgerman3',
'username' => 'TranslateGerman3_bot',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1637326860,
'text' => 'آیا می توانی مرا بهبود ببخشی؟',
'reply_markup' =>
array(
'inline_keyboard' =>
array(
0 =>
array(
0 =>
array(
'text' => 'برگردان به آلمانی',
'callback_data' => 'faDeTextTrans:tr',
),
)
),
),
),
'chat_instance' => '6045663049603071067',
'data' => 'faDeTextTrans:tr',
),
);
}
function getUpdateForStartWithPatreonCode($debugUserID)
{
return array (
'update_id' => 636283584,
'message' =>
array (
'message_id' => 13226,
'from' =>
array (
'id' => $debugUserID,
'is_bot' => false,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'language_code' => 'en',
),
'chat' =>
array (
'id' => $debugUserID,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1640029515,
'text' => '/start patbVuhO3XvBgvQonAi3oY9woQuAc79XB',
'entities' =>
array (
0 =>
array (
'offset' => 0,
'length' => 6,
'type' => 'bot_command',
),
),
),
);
}
function getUpdateForCallBack($debugUserID)
{
$updateProblem = array(
'update_id' => 948355183,
'callback_query' =>
array(
'id' => '192857967280163938',
'from' =>
array(
'id' => $debugUserID,
'is_bot' => false,
'first_name' => 'Saeed😊',
'username' => 'sinzed',
'language_code' => 'en',
),
'message' =>
array(
'message_id' => 67308,
'from' =>
array(
'id' => 379870251,
'is_bot' => true,
'first_name' => 'ارتباط با ادمین',
'username' => 'tamasbabot',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => 'Saeed😊',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1582877574,
'text' => 'سلام، خوبین ؟ اگه سوالی راجع به اپ بایادیک یا ربات مترجم دارین اینجا بنویسید😊',
'reply_markup' =>
array(
'inline_keyboard' =>
array(
0 =>
array(
0 =>
array(
'text' => 'مشاهده دکمه ها',
'callback_data' => 'ANSWER:10:208127099',
),
),
),
),
),
'chat_instance' => '-1006123189264841338',
'data' => 'ANSWER:10:208127099',
),
);
return $updateProblem;
}
function getVideoUpdate($debugUserID)
{
$update1 = array(
'update_id' => 397017557,
'message' =>
array(
'message_id' => 12545,
'from' =>
array(
'id' => $debugUserID,
'is_bot' => false,
'first_name' => '𝕊𝕒𝕖𝕖𝕕',
'username' => 'sinzed',
'language_code' => 'en',
),
'chat' =>
array(
'id' => 44903244,
'first_name' => '𝕊𝕒𝕖𝕖𝕕',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1610101595,
'forward_from' =>
array(
'id' => 745814875,
'is_bot' => false,
'first_name' => 'H',
'username' => 'HTML5555',
),
'forward_date' => 1609698048,
'video' =>
array(
'duration' => 8,
'width' => 480,
'height' => 480,
'mime_type' => 'video/mp4',
'thumb' =>
array(
'file_id' => 'AAMCBAADGQEAAjEBX_gzW_KEdn1oJ8gUAfU1SeA8AfQAAvEJAAJJxpBTOQqy6vCIGdRgiu8qXQADAQAHbQADQjQAAh4E',
'file_unique_id' => 'AQADYIrvKl0AA0I0AAI',
'file_size' => 19427,
'width' => 320,
'height' => 320,
),
'file_id' => 'BAACAgQAAxkBAAIxAV_4M1vyhHZ9aCfIFAH1NUngPAH0AALxCQACScaQUzkKsurwiBnUHgQ',
'file_unique_id' => 'AgAD8QkAAknGkFM',
'file_size' => 1130025,
),
),
);
return $update1;
}
function getUpdateForTextToSpeech(){
$updateProblem = array (
'update_id' => 471636825,
'callback_query' =>
array (
'id' => '192857965472572574',
'from' =>
array (
'id' => 44903244,
'is_bot' => false,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'language_code' => 'en',
),
'message' =>
array (
'message_id' => 294555021,
'from' =>
array (
'id' => 305982822,
'is_bot' => true,
'first_name' => 'لغت نامه آلمانی',
'username' => 'TranslateGerman_bot',
),
'chat' =>
array (
'id' => 44903244,
'first_name' => '𝕊aeed',
'username' => 'sinzed',
'type' => 'private',
),
'date' => 1717957697,
'text' => 'Die - Ausnahme : استثناء ( die Ausnahmen)
eine Ausnahme machen : استثناء قائل شدن (-)
ohne Ausnahme : بلااستثناء
Ausnahme : استثناع
😊
@TranslateGerman_bot',
'entities' =>
array (
0 =>
array (
'offset' => 155,
'length' => 20,
'type' => 'mention',
),
),
'reply_markup' =>
array (
'inline_keyboard' =>
array (
0 =>
array (
0 =>
array (
'text' => '➕ اضافه کردن معنی به ausnahme',
'callback_data' => 'addNew:ausnahme',
),
),
1 =>
array (
0 =>
array (
'text' => '📊 ارزیابی لغات',
'callback_data' => 'startEvaluate:ausnahme',
),
),
2 =>
array (
0 =>
array (
'text' => '💡 مشاهده مثال',
'callback_data' => 'showEx:ausnahme',
),
),
3 =>
array (
0 =>
array (
'text' => '📣 تلفظ کلمه ausnahme',
'callback_data' => 'SPEECHGET:ausnahme',
),
),
),
),
),
'chat_instance' => '7376709644005561894',
'data' => 'SPEECHGET:ausnahme',
),
);
return $updateProblem;
}
}