Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • 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
    • 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
KirillBelov`TelegramBot`
CreateBotSession
​
CreateBotSession
[bot]
session
bot
​
​
CreateBotSession
[bot,timespec]
session
bot
with specific
timespec
​
​
CreateBotSession
[bot,updateHandler]
session
bot
with specific
updateHandler
​
​
CreateBotSession
[bot,updateHandler,timespec]
session
bot
with specific
updateHandler
and timespec
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Create the Bot:
In[1]:=
bot=
TelegramBot
["1247031088:AAGW73yzggrm4Tr7bldGCCaIrrwISNsdDzg"]
Out[1]=
TelegramBot
Name: WolframKernelBot

Create an update handler:
In[2]:=
updateHandler[bot_TelegramBot,update_]:=​​
sendMessage
[bot,update["message","chat","id"],"Hello!"]
Period and count of runs for the bot:
In[3]:=
timespec={1,10}
Out[3]=
{1,10}
And submit bot to the session:
In[4]:=
task=
CreateBotSession
[bot,updateHandler,timespec]
Out[4]=
And result is:
SeeAlso
TelegramBot
 
▪
getUpdates
RelatedGuides
▪
TelegramBot Guide
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com