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`
ImportTelegramFile
​
ImportTelegramFile
[bot,fileId]
bot imports from telegram file by fileId
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Let's create the bot:
In[1]:=
bot=
TelegramBot
["1247031088:AAGW73yzggrm4Tr7bldGCCaIrrwISNsdDzg"]
Out[1]=
TelegramBot
Name: WolframKernelBot

Previously, I sent the bot a file:
Get get the latest update:
In[2]:=
lastUpdate=
getUpdates
[bot]"result",-1
Out[2]=
update_id298047497,messagemessage_id1955,fromid490138492,is_botFalse,first_nameKirill,last_nameBelov,usernameKirillBelovTest,language_coderu,chatid490138492,first_nameKirill,last_nameBelov,usernameKirillBelovTest,typeprivate,date1671454622,photo{file_idAgACAgIAAxkBAAIHo2OgX56F5FeFbfrTnxfjo3_bnh1tAAKPwTEbcpMBSan-_YF_-oyMAQADAgADcwADLAQ,file_unique_idAQADj8ExG3KTAUl4,file_size2218,width89,height90,file_idAgACAgIAAxkBAAIHo2OgX56F5FeFbfrTnxfjo3_bnh1tAAKPwTEbcpMBSan-_YF_-oyMAQADAgADbQADLAQ,file_unique_idAQADj8ExG3KTAUly,file_size10342,width318,height320}
Extract file id:
In[3]:=
fileId=lastUpdate〚"message","photo",1,"file_id"〛
Out[3]=
AgACAgIAAxkBAAIHo2OgX56F5FeFbfrTnxfjo3_bnh1tAAKPwTEbcpMBSan-_YF_-oyMAQADAgADcwADLAQ
And using the received identifier import the file:
In[4]:=
ImportTelegramFile
[bot,fileId]
Out[4]=
SeeAlso
TelegramBot
RelatedGuides
▪
TelegramBot Guide
""

© 2025 Wolfram. All rights reserved.

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