Skip to content

Instantly share code, notes, and snippets.

View evgfilim1's full-sized avatar
🫠

Evgen Fil evgfilim1

🫠
View GitHub Profile
@evgfilim1
evgfilim1 / delete.py
Last active September 23, 2022 08:25 — forked from sheldygg/has_permissions.py
Permissions filter for aiogram>=3.0b4. Thanks @sheldygg for original implementation.
from aiogram import F, Router
from aiogram.filters import Command
from ..filters.has_permissions import Permission, HasPermission
router = Router()
@router.message(
Command(commands=['del']),
@evgfilim1
evgfilim1 / main.py
Last active May 17, 2022 21:31
Hearthcards (www.hearthcards.net) Telegram bot
import base64
import json
import random
import re
from io import BytesIO
from typing import AsyncGenerator, Union
from PIL import Image
from aiogram import Bot, Dispatcher, Router, F
from aiogram.dispatcher.filters import CommandObject
@evgfilim1
evgfilim1 / anonymous.json
Last active January 23, 2020 08:32
Telegram Bot API updates with polls
{
"update_id":521982041,
"message":{
"message_id":6187,
"from":{
"id":230130383,
"is_bot":false,
"first_name":"Evgen",
"last_name":"Fil //",
"username":"evgfilim1",

Keybase proof

I hereby claim:

  • I am evgfilim1 on github.
  • I am evgfilim1 (https://keybase.io/evgfilim1) on keybase.
  • I have a public key ASBq6AqxuH0Pmx59ZEpbwn6kxSsYWaZZM9Yv_6GlHBh9uwo

To claim this, I am signing this object:

@evgfilim1
evgfilim1 / pacaur-install.sh
Created May 6, 2018 19:28
pacaur installer script for ArchLinux-based distros
#!/usr/bin/env bash
# pacaur installer script by evgfilim1
set -e
if [[ -t 1 ]]; then
_CL_ERROR='\e[91m' # light red
_CL_MSG='\e[92m' # light green
_CL_WARNING='\e[93m' # light yellow
_CL_MSG2='\e[94m' # light blue
_CL_NONE='\e[0m' # default