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
from telethon.sync import TelegramClient | |
from telethon.tl.functions.messages import GetDialogsRequest | |
from telethon.tl.functions.channels import GetFullChannelRequest | |
from telethon.tl.types import InputPeerEmpty | |
from telethon.errors.rpcerrorlist import SessionPasswordNeededError | |
from tqdm import tqdm | |
api_id = '12345678' | |
api_hash = '123456781234567812345678' | |
phone_number = '+380123456789' |
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
import re | |
from telethon import events, types | |
from telethon.sync import TelegramClient | |
from telethon.tl.functions.channels import JoinChannelRequest | |
from telethon.tl.functions.messages import ImportChatInviteRequest | |
from telethon.errors.rpcerrorlist import SessionPasswordNeededError | |
# Replace the values below with your own API credentials | |
api_id = '12345678' |
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
#!/bin/bash | |
# Usage: ./removewater.sh <collection_name>.zip | |
# watermark bounds | |
water_x=330 | |
water_y=160 | |
unzip $1 -d /tmp/nft-collection |
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
#!/usr/bin/env python3 | |
import urllib.request as ur | |
import urllib.parse as up | |
from sys import argv | |
WEBHOOK_URL = "https://api.telegram.org" | |
BOT_API = "HERE_YORS_BOT_TOKEN_FROM_BOTFATHER" | |
DATA = up.urlencode({ | |
'text': ' '.join(argv[1:]), |