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
# Both Telethon and Pyrogram should be Installed | |
# Made only for Educational Purpose | |
# New-dev0 (2021) | |
import struct, base64 | |
from telethon.sessions.string import StringSession | |
from telethon.sync import TelegramClient | |
from pyrogram.storage.storage import Storage | |
from pyrogram import utils |
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
# A script to get/download random quotes from | |
# QuoteFancy.com in form of text or images ... | |
import random | |
import urllib | |
from urllib import urlopen | |
from bs4 import BeautifulSoup as bs | |
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
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py | |
# Copyright (C) 2021 Tulir Asokan | |
import asyncio | |
import hashlib | |
import inspect | |
import logging | |
import math | |
import os | |
from collections import defaultdict | |
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO |