Created
March 14, 2021 00:27
-
-
Save pedromaironi/0b5c97778b3ebe34cc97b2c53f344982 to your computer and use it in GitHub Desktop.
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
# -*- coding: utf-8 -*- | |
from config import * | |
print(Color( | |
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan} about.py importado.{/cyan}')) | |
@bot.message_handler( | |
func=lambda m: m.content_type == 'text' and m.text in [ | |
'CRÉDITOS', | |
'CREDITS', | |
'CREDITI', | |
'DANKSAGUNGEN', | |
'CRÉDITS', | |
'CONTRIBUITORI', | |
'АВТОРЫ', | |
'JENERİK']) | |
@bot.message_handler(commands=['credits']) | |
def command_credits(m): | |
cid = m.chat.id | |
uid = m.from_user.id | |
try: | |
send_udp('credits') | |
except Exception as e: | |
bot.send_message(52033876, send_exception(e), parse_mode="Markdown") | |
url = 'https://github.com/eternnoir/pyTelegramBotAPI' | |
if not is_recent(m): | |
return None | |
if is_banned(uid) or is_banned(cid): | |
if not extra['muted']: | |
bot.send_chat_action(cid, 'typing') | |
bot.reply_to(m, responses['banned']) | |
return None | |
if is_user(cid): | |
bot.send_chat_action(cid, 'typing') | |
bot.send_message( | |
cid, responses['about'][ | |
lang(cid)] % (url), parse_mode="Markdown") | |
else: | |
bot.send_chat_action(cid, 'typing') | |
bot.send_message(cid, responses['not_user']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment