404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.191.112.81: ~ $
<?php
class GermanButtonService extends ButtonService
{	
	public function getVoiceButton()
	{
		$this->addKeyboardMarkup("💬🇩🇪 تشخیص آلمانی ", SpeechToTextCallbackHandler::$key . ":" . "de");
		$this->addKeyboardMarkup("💬🇮🇷 تشخیص فارسی ", SpeechToTextCallbackHandler::$key . ":" . "fa");
		$markup = json_encode($this->getKeyboard(), true);
		return $markup;
	}

	function addExamplesWebapp($word)
	{
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => "💡 مشاهده مثال $word",
				'web_app' => ['url' => 'https://app.bayadic.com/dict/de/fa/example/'.$word]
			]
		];
	}	
	function addConjugationsWebapp($word)
	{
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => "🖐 صرف فعل $word",
				'web_app' => ['url' => 'https://app.bayadic.com/dict/de/fa/conjugate/'.$word]
			]
		];
	}
	function addWebAppPronounce($word)
	{
		if($this->getTG()->isPersianLanguage($word)){
			$this->keyboard['inline_keyboard'][] = [
				[
					'text' => "📣 تلفظ کلمات",
					'web_app' => ['url' => 'https://app.bayadic.com/dict/de/fa/'.$word]
				]
			];
		}
		else {
			$this->keyboard['inline_keyboard'][] = [
				[
					'text' => "📣 تلفظ کلمه $word",
					'web_app' => ['url' => 'https://app.bayadic.com/dict/de/fa/'.$word.'?pronounce']
				]
			];
		}
	
	}
	function translateInWebApp($word)
	{
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => "🔍 مشاهده ترجمه $word",
				'web_app' => ['url' => 'https://app.bayadic.com/dict/de/fa/'.$word]
			]
		];
	}
	function addTableSearchWordGame($word){
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => "🧩 سرگرمی جدول",
				'web_app' => ['url' => 'https://app.bayadic.com/games/wordsearch/'.$word]
			]
		];
	}
	function addWebAppItems($word)
	{
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => 'امکانات بیشتر',
				'web_app' => ['url' => 'https://app.bayadic.com?v=1.0.1']
			]
		];
	}

	function addAddToLeitner($word)
	{
		$this->keyboard['inline_keyboard'][] = [
			[
				'text' => '📥 به جعبه لایتنر اضافه کن',
				'web_app' => ['url' => 'https://app.bayadic.com/chat/add-to-leitner/de/fa/'.$word]
			]
		];
	}

}

Filemanager

Name Type Size Permission Actions
invite Folder 2755
translate Folder 2755
BaseMessageService.class.php File 268 B 0755
BaseService.class.php File 364 B 0755
ButtonService.class.php File 6.81 KB 0755
CallbackService.class.php File 2.51 KB 0755
ContributionService.class.php File 1.76 KB 0755
GermanButtonService.class.php File 2.19 KB 0755
IntentService.class.php File 7.37 KB 0755
SearchService.class.php File 811 B 0755
TTSService.class.php File 769 B 0755