Skip to content

Instantly share code, notes, and snippets.

Working from home

MrMahdi313 MrMahdi313

Working from home
View GitHub Profile
View main
from requests import get
from redis import Redis
from flask import Flask, jsonify
from threading import Thread
app = Flask(__name__)
class JobDB:
redis = Redis(decode_responses=True)
from requests import get
from bs4 import BeautifulSoup
from re import search
def get_all_urls():
urls = [
MrMahdi313 /
Last active Jul 26, 2019
delete self messages

Delete all self messages (when user not admin of telegram group) [with pyrogram]

  • Requirements:

    1. pip3 install pyrogram
    2. pip3 install -U pyrogram[fast]
  • Usag:

    1. Get your api-id & api-hash then Insert these on Client parameters.
    2. Enter command python3 (if your region has limited: torsocks python3
  • Community:

import requests
import os
import sys
import random
import string
MrMahdi313 /
Created Sep 2, 2018
چک کردن تراکنش کارت به کارت بانک ملی
# trans_id -> شماره ارجاع یا پیگیری
# card -> چهار رقم آخر شماره کارت بانکی
# amount -> مبلغ تراکنش به ریال
# با تغییر در کد میتوانید کلیه تراکنش هارو چک کنید. ولی این فقط برای تراکنش های ورودی کارت به کارت هستش
def check_payment(trans_id, card, amount):
login_url = ''
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json'}
username = ''
You can’t perform that action at this time.