-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d201df5
commit 0f62f5e
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
// import { promoExceptions } from '@/models/PromoException' | ||
import { promoExceptions } from '@/models/PromoException' | ||
import Context from '@/models/Context' | ||
import isRuChat from '@/helpers/isRuChat' | ||
// import promoTexts from '@/helpers/promoTexts' | ||
import promoTexts from '@/helpers/promoTexts' | ||
|
||
export default function addPromoToText(ctx: Context, text: string) { | ||
// return promoExceptions.includes(+ctx.dbchat.id) | ||
// ? text | ||
// : `${text}\n${isRuChat(ctx.dbchat) ? promoTexts.ru() : promoTexts.en()}` | ||
return isRuChat(ctx.dbchat) | ||
? '_Друзья, простите, но я больше не могу терпеть игнорирование со стороны команды Телеграма. Пожалуйста, напишите, насколько сильно вам нужен Войси в официальном чате Телеграма — @durovschat. 13 миллионов людей пользуется Войси каждый день, но надо мной — и другими сторонними разработчиками — Телеграм просто смеется.\n\nМы теряем Войси! Спросите у команды Телеграма в @durovschat, почему Войси не работает и кто получил призы за ботов (telegram.org/blog/botprize). Спасибо вам большое, что вы со мной! Всегда ваш, @borodutch_ ❤️' | ||
: "_Friends, I'm sorry, but I can no longer withstand the Telegram team's public disregard of Voicy existence. Please tell the Telegram team how helpful Voicy is to you in the official Telegram chat — @durovschat. 13 million people use Voicy daily, but Telegram laughs at other bot developers and me.\n\nWe are losing Voicy! Ask the Telegram team at @durovschat why doesn't Voicy work and who got the bot prize (telegram.org/blog/botprize). Thank you a lot for your support! Always yours, @borodutch_ ❤️" | ||
return promoExceptions.includes(+ctx.dbchat.id) | ||
? text | ||
: `${text}\n${isRuChat(ctx.dbchat) ? promoTexts.ru() : promoTexts.en()}` | ||
} |