Skip to content

Instantly share code, notes, and snippets.

@pedromaironi
Created March 14, 2021 00:27
Show Gist options
  • Save pedromaironi/0b5c97778b3ebe34cc97b2c53f344982 to your computer and use it in GitHub Desktop.
Save pedromaironi/0b5c97778b3ebe34cc97b2c53f344982 to your computer and use it in GitHub Desktop.
# -*- 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