This file contains hidden or 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 aiogram import Bot, types | |
| from aiogram.dispatcher import Dispatcher, filters | |
| from aiogram.utils import executor | |
| import re | |
| class RegexpCommandsFilter(filters.AsyncFilter): | |
| """ | |
| Check commands by regexp in message | |
| """ |
This file contains hidden or 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
| #include <sys/ioctl.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| void DeleteLine(int delay=10000){ | |
| usleep(delay); | |
| std::cout << "\033[A\033[2K"; | |
| } | |
This file contains hidden or 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 telebot | |
| import flask | |
| from credentials import token, host, port, DEBUG | |
| API_TOKEN = token | |
| WEBHOOK_HOST = host | |
| WEBHOOK_PORT = port | |
| WEBHOOK_URL_BASE = "https://%s" % (WEBHOOK_HOST) |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import json | |
| import logging | |
| import requests | |
| import flask | |
| # https://play.google.com/store/apps/details?id=app.greyshirts.sslcapture for Token and User-Agent | |
| vkapi_url = 'https://api.vk.com/method/audio.getById' | |
| vk_token = 'qwertyuiopasdfghjklzxcvbnm1234567890' |
This file contains hidden or 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 import TelegramClient | |
| api_id = 12345 | |
| api_hash = '0123456789abcdef0123456789abcdef' | |
| phone = '+34600000000' | |
| # First Connect | |
| client = TelegramClient('user_{}'.format(phone[1:]), api_id, api_hash) | |
| client.connect() |
This file contains hidden or 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
| #include <string> | |
| #include <vector> | |
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <termios.h> | |
| #include <unistd.h> | |
| #include <memory.h> | |
| // For blocked reading pressed symbol |
This file contains hidden or 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
| def shut_dow(s): | |
| if s == "yes": | |
| return "Shutting down" | |
| elif s == "no": | |
| return "Shutdown aborted" | |
| return "Sorry" |
This file contains hidden or 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
| void binary_form(int TYPE) { | |
| int z; | |
| for (char j = sizeof(int) * 8 - 1; j >= 0; j--) { | |
| z = ((int)1) << j; | |
| if ((TYPE & z) != 0) | |
| std::cout << 1; | |
| else | |
| std::cout << 0; | |
| } | |
| } |
This file contains hidden or 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
| api_id = 111337 # my.telegram.org | |
| api_hash = 'blblbla12317823123789127809' | |
| phone_number = '+79991488228' |