Skip to content

Instantly share code, notes, and snippets.

View OsoPanda1's full-sized avatar
💭
Volvió la elite

Edwin Oswaldo Castillo Trejo (Anubis Villaseñor) OsoPanda1

💭
Volvió la elite
View GitHub Profile
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@OsoPanda1
OsoPanda1 / gban.py
Last active May 3, 2024 15:10
Gban for Telegram
'fban_gbanimport asyncio
from telethon.tl.types import MessageEntityMentionName
from userbot import CMD_HELP, bot, is_mongo_alive, is_redis_alive
from userbot.events import register
from userbot.modules.dbhelper import (add_chat_fban, add_chat_gban, get_fban,
get_gban, remove_chat_fban,
remove_chat_gban)