Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
TelegramBot
Guides
TelegramBot Guide
Symbols
CreateBotSession
DeployBotWebhook
getMe
getUpdates
HandleBotUpdates
ImportTelegramFile
Object
sendMessage
sendPhoto
TelegramBot
LongPolling
About how to create a bot that will work in the current session and respond to messages
T
e
l
e
g
r
a
m
B
o
t
b
o
t
o
b
j
e
c
t
g
e
t
U
p
d
a
t
e
s
c
h
e
c
k
i
n
c
o
m
i
n
g
m
e
s
s
a
g
e
s
s
e
n
d
M
e
s
s
a
g
e
s
e
n
d
r
e
p
l
y
XXXX.
Import the package:
I
n
[
4
9
]
:
=
<
<
K
i
r
i
l
l
B
e
l
o
v
`
T
e
l
e
g
r
a
m
B
o
t
`
Let's create a bot first:
I
n
[
5
0
]
:
=
b
o
t
=
T
e
l
e
g
r
a
m
B
o
t
[
"
1
2
4
7
0
3
1
0
8
8
:
A
A
G
W
7
3
y
z
g
g
r
m
4
T
r
7
b
l
d
G
C
C
a
I
r
r
w
I
S
N
s
d
D
z
g
"
]
O
u
t
[
5
0
]
=
T
e
l
e
g
r
a
m
B
o
t
N
a
m
e
:
W
o
l
f
r
a
m
K
e
r
n
e
l
B
o
t
H
i
s
t
o
r
y
L
e
n
g
t
h
:
4
M
o
d
e
:
W
e
b
h
o
o
k
T
a
s
k
:
N
o
n
e
W
e
b
h
o
o
k
:
h
t
t
p
s
:
/
/
w
w
w
.
w
o
l
f
r
a
m
c
l
o
u
d
.
c
o
m
/
o
b
j
/
k
i
r
i
l
l
b
e
l
o
v
t
e
s
t
/
w
e
b
h
o
o
k
Let's create an event handler that will respond to all "Hello" messages:
I
n
[
5
1
]
:
=
h
a
n
d
l
e
r
H
i
[
b
o
t
_
T
e
l
e
g
r
a
m
B
o
t
,
u
p
d
a
t
e
_
?
A
s
s
o
c
i
a
t
i
o
n
Q
]
:
=
M
o
d
u
l
e
{
c
h
a
t
}
,
c
h
a
t
=
u
p
d
a
t
e
[
"
m
e
s
s
a
g
e
"
,
"
c
h
a
t
"
,
"
i
d
"
]
;
s
e
n
d
M
e
s
s
a
g
e
[
b
o
t
,
c
h
a
t
,
"
H
e
l
l
o
"
]
Delete webhook if exists:
I
n
[
5
2
]
:
=
d
e
l
e
t
e
W
e
b
h
o
o
k
[
b
o
t
]
O
u
t
[
5
2
]
=
o
k
T
r
u
e
,
r
e
s
u
l
t
T
r
u
e
,
d
e
s
c
r
i
p
t
i
o
n
W
e
b
h
o
o
k
w
a
s
d
e
l
e
t
e
d
Add this handler as a bot property:
I
n
[
5
3
]
:
=
b
o
t
[
"
U
p
d
a
t
e
H
a
n
d
l
e
r
"
]
=
h
a
n
d
l
e
r
H
i
O
u
t
[
5
3
]
=
h
a
n
d
l
e
r
H
i
And run the bot in the current session:
I
n
[
5
4
]
:
=
b
o
t
[
"
T
a
s
k
"
]
=
S
e
s
s
i
o
n
S
u
b
m
i
t
S
c
h
e
d
u
l
e
d
T
a
s
k
H
a
n
d
l
e
B
o
t
U
p
d
a
t
e
s
[
b
o
t
]
,
{
Q
u
a
n
t
i
t
y
[
1
,
"
S
e
c
o
n
d
s
"
]
,
3
0
0
}
O
u
t
[
5
4
]
=
Go to the chat and let;s send to the bot "Hi"
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
T
e
l
e
g
r
a
m
B
o
t
G
u
i
d
e
R
e
l
a
t
e
d
T
e
c
h
N
o
t
e
s
▪
W
e
b
h
o
o
k
s
"
"