Run this script directly
curl -Lks bit.ly/pipclear | pythonRun this script directly
curl -Lks bit.ly/pipclear | python| # pip install python-dotenv python-telegram-bot | |
| # create a .env file with | |
| # BOT_TOKEN=... | |
| # in the same dir as of this script | |
| import logging | |
| from dotenv import load_dotenv | |
| from telegram.ext.filters import Filters | |
| from telegram import ParseMode | |
| import os |
You must ensure that you have Telethon installed. Run pip install telethon to install.
[optional]
You can can create file called .env in the directory from which you are running the script.
.env
| /* | |
| frontend server | |
| server HTML,CSS and frontend js | |
| use ejs to render html | |
| Credits: https://gist.github.com/noampc/6a36885dbe75f24056ac7a3c7f50d2b7 | |
| */ | |
| import express from "express"; |
| { | |
| "Cp cpp": { | |
| "prefix": "cpp", | |
| "body": [ | |
| "#include <bits/stdc++.h>", | |
| "using namespace std;", | |
| "", | |
| "#ifdef aahnik", | |
| "#include \"dbg.cpp\"", | |
| "#else", |
| #include <pthread.h> | |
| #include <stdatomic.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #define MAX 90000 | |
| atomic_int count = ATOMIC_VAR_INIT(0); | |
| int faltu = 0; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) { | |
| FILE *fp; | |
| void filecopy(FILE *, FILE *); | |
| if (argc == 1) { | |
| // no input, so copy stdin | |
| filecopy(stdin, stdout); |