forked from ShivangKakkar/TelegraphBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathData.py
99 lines (74 loc) · 2.88 KB
/
Data.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
from pyrogram.types import InlineKeyboardButton
class Data:
# Start Message
START = """
Hey {}
Welcome to {}
I can upload media to telegra.ph and give you back the link with ease. Try sending multiple media, and it still won't stop me.
I can also be used in groups !!
To see `Supported Media Types` tap the related button below.
Use the other buttons to know more about me and my usage.
By @StarkBots
"""
# Help Message
HELP = """
**READ BELOW TO KNOW HOW TO USE ME.**
See `Supported Media Types` by clicking that related button below.
**How to use me here?**
Just send the media and leave rest on me.
**How to use in group?**
Add to me the group.
Then reply to a media with /telegraph to get the telegra.ph link.
You can alternatively also use "t" or "tg" as commands and "!" as prefix to do the same.
That is,
!t , !tg , !telegraph
/t , /tg , /telegraph
[If you add in your group, your group users won't need to join our channel.]
__Note__ : If the bot doesn't respond in the expected way, make the bot admin so that bot gets updates for sure. Telegram is weird.
More features in development. Keep track by joining @StarkBots.
"""
# About Message
ABOUT = """
**About This Bot**
Bot created by @StarkBots
Source Code : [Click Here](https://github.com/StarkBotsIndustries/TelegraphBot)
Framework : [Pyrogram](docs.pyrogram.org)
Language : [Python](www.python.org)
Developer : @StarkProgrammer
Support : @StarkBotsChat
"""
SUPPORTED_MEDIA_TYPES = """
✨ **SUPPORTED MEDIA TYPES** ✨
1) Image
2) Sticker
3) Gifs or Animation
4) Video
5) Video Note
6) Document (Video/Photo/Gif)
Note : Telegraph has a size limit of 5 MB.
"""
# Home Button
home_buttons = [
[InlineKeyboardButton("✨ Bot Status and More Bots ✨", url="https://t.me/StarkBots/7")],
[InlineKeyboardButton("🎇 Supported Media Types 🎇", callback_data="supported_media_types")],
[InlineKeyboardButton("Close 🔐", callback_data="close")],
[InlineKeyboardButton(text="🏠 Return Home 🏠", callback_data="home")],
]
# Rest Buttons
buttons = [
[
InlineKeyboardButton("✨ Bot Status and More Bots ✨", url="https://t.me/StarkBots/7")
],
[InlineKeyboardButton("🎇 Supported Media Types 🎇", callback_data="supported_media_types")],
[
InlineKeyboardButton("How to Use ❔", callback_data="help"),
InlineKeyboardButton("📥 About 📥", callback_data="about")
],
[InlineKeyboardButton("Close 🔐", callback_data="close")]
]
# Supported Media Buttons
supported_media_buttons = [
[InlineKeyboardButton("✨ Bot Status and More Bots ✨", url="https://t.me/StarkBots/7")],
[InlineKeyboardButton("Close 🔐", callback_data="close")],
[InlineKeyboardButton(text="🏠 Return Home 🏠", callback_data="home")]
]