FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
testSimplePythonTelegramBot/bot.py at pull · Dimus99/testSimplePythonTelegramBot · GitHub
Dimus99
/
testSimplePythonTelegramBot
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
testSimplePythonTelegramBot
/
bot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 442 Bytes
Breadcrumbs
testSimplePythonTelegramBot
/
bot.py
Copy path
File metadata and controls
16 lines (13 loc) · 442 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
telebot
;
import
config
token
=
config
.
token
bot
=
telebot
.
TeleBot
(
token
)
@
bot
.
message_handler
(
content_types
=
[
'text'
])
def
get_text_messages
(
message
):
if
message
.
text
==
"Hi"
:
bot
.
send_message
(
message
.
from_user
.
id
,
"hi?"
)
elif
message
.
text
==
"/help"
:
bot
.
send_message
(
message
.
from_user
.
id
,
"Hi?"
)
else
:
bot
.
send_message
(
message
.
from_user
.
id
,
message
.
text
)
bot
.
polling
(
none_stop
=
True
,
interval
=
0
)
Back
|
FazBrowse Home
|
New Git URL