I hereby claim:
- I am aero-blue on github.
- I am aeroblue (https://keybase.io/aeroblue) on keybase.
- I have a public key ASCZ2IMZwEof3e4JxFDodWvOQj38vIUp9-ri3lCKEN2JsAo
To claim this, I am signing this object:
from telethon.sync import TelegramClient | |
import asyncio | |
from os import path | |
# Logging configuration | |
def login(phone, api_id, api_hash): | |
global client | |
client = TelegramClient(phone, int(api_id), api_hash) |
def get_raw_messages(server): | |
message_ids = [ | |
int(message_id.split(b" ")[0]) for message_id in server.list()[1] | |
] | |
raw_messages = [ | |
b"\n".join(server.retr(message_id)[1]) for message_id in message_ids | |
] | |
return [ | |
parser.BytesParser().parsebytes(raw_message) for raw_message in raw_messages | |
] |
class Inbox: | |
@classmethod | |
def login(cls, username, password, smtp): | |
print(f"Connecting to {smtp}...") | |
server = poplib.POP3_SSL(smtp) | |
print(f"Logging in...") | |
server.user(username) | |
server.pass_(password) | |
print(f"Logged in as {username}!") | |
return server |
Thread thread = new Thread(() -> { | |
Runnable updater = () -> { | |
// update ui operation / last here | |
}; | |
// perform background operations here | |
Platform.runLater(updater); | |
}); | |
thread.setDaemon(true); // let application close | |
thread.start(); |
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client: | |
user_list = ["@user1", "@user2", "@user3"] | |
for user in user_list: | |
client.send_message(user, "Some message") # Send message to each user |
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client: | |
users = client.get_participants(input("Group Name: ")) # Get all members of a group | |
user_list = [user.username for user in users if user.username is not None] | |
print(user_list) # Print a list of members |
from telethon.sync import TelegramClient # Imports | |
API_ID = 123456 | |
API_HASH = "cje94230424jlesaferj23432042cc" | |
PHONE_NUMBER = "+12345678900" | |
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client: | |
account = client.get_me() # All your account info | |
print(f"Logged in as {account.username}!") # Output to console |
I hereby claim:
To claim this, I am signing this object:
import argparse | |
from requests_html import HTMLSession | |
USERNAME = "" | |
PASSWORD = "" | |
CAPTCHA_CODE = "" | |
class Main: | |
def __init__(self): |
// ==UserScript== | |
// @name EasyCopyBTC | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically copies selected Bitcoin addresses to clipboard! | |
// @author Aero Blue | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |