-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
49 lines (36 loc) · 1.14 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
You can get your API ID and API HASH from https://my.telegram.org
You can get your bot token from https://t.me/BotFather
You can get your rapid api key from https://rapidapi.com/Glavier/api/online-code-compiler
"""
NAME = "CodeCompiler"
API_ID = None
API_HASH = ""
BOT_TOKEN = ""
RAPID_API_KEY = ""
START_MSG = """
**Hello! 👻**
**My name is Code Compiler Bot.**
**Here I can compile codes in various programming languages.**
**You can use the /help command to learn how to use it.**
"""
HELP_MSG = """
**How to Use Code Compiler Bot:**
**To run code, use the following format:**
```
/run <language> <code or reply_code_text or reply_code_document> [/stdin <stdin>]
```
**Examples:**
```
/run python3 print("Hello, World! 👻")
```
```
/run python3 print(input("Enter your name: ")) /stdin Suphi
```
**To use in inline mode:**
```
@bot_username <language> <code> [/stdin <stdin>]
```
**Replace** `<language>` **with the programming language you're using,** `<code>` **with your actual code, and** `[/stdin <stdin>]` **with optional stdin for your code.**
**Use the button below the printout to share the code in the chat you want! 🚀**
"""