Comments (3)
When a file is uploaded to Telegram servers, it gets assigned a unique ID, such as BQADAgAD3gAD9HsZAAFphGBFqImfGAI
. Simply pass that ID when sending:
reply.sticker("BQADAgAD3gAD9HsZAAFphGBFqImfGAI");
reply.video("...");
// ...
Look here for how to send all kinds of messages, until docs are finished. If you don't know the ID of your file, you can run the print
example.
Important: The ID has to be used in the same context the file was uploaded. For instance, if the ID belongs to an image uploaded as photo, it can't be passed to reply.document()
. You'd need to reupload in that case.
from botgram.
wow.
thanks for the quick reply.
you did a really good job with this framework.
congrats dude!
from botgram.
Most documentation finished now, see messages sending and the section on uploading files.
Closing the issue now, reopen if you see anything wrong.
from botgram.
Related Issues (20)
- Question: Error handling HOT 1
- Using force reply/creating step by step flows HOT 4
- inlineKeyboard not working HOT 5
- commands HOT 2
- TelegramError: can't use getUpdates method while webhook is active HOT 2
- New commands won't work if there are more than 5 commands HOT 4
- inline mode HOT 3
- MYSQL QUERY HOT 1
- Question: Replying to callback queries with text HOT 3
- keyboard resize fix HOT 2
- Make the botgram plugin base HOT 3
- NetworkError: getUpdates failed (after ~24 hours) HOT 4
- Markdown HOT 1
- Any plans to release TypeScript definitions?
- [Question] Ways to send photos as album?
- I want to add the Top Referral button but how can I get the referral list like this picture. (Node.js)
- I want to add the Top Referral button but how can I get the referral list like this picture. (Node.js)
- Resume development
- Initialize only with App Id and App Hash
- msg.args() is not intuitive HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botgram.