Тёмный

Creating a URL Uploader Bot for Telegram with JavaScript and Cloudflare Workers 

Simple Coding Tutorials
Подписаться 392
Просмотров 441
50% 1

This tutorial video guides you through the process of modifying an existing Telegram bot to create a URL uploader bot. Leveraging JavaScript and Cloudflare Workers, this bot uploads files to a chat from a provided URL. This resource is perfect for those interested in automation, cloud services, and enhancing their Telegram usage. Start enhancing your Telegram bot with URL uploader capabilities today!
Code:tinyurl.com/url-uploader-bot
Deploy A Telegram Bot For Free With Cloudflare Workers : • Deploy A Telegram Bot ...
0:00 Introduction to creating a URL uploader bot
0:29 Implementing JavaScript code for the URL uploader bot
2:44 Deploying bot script on Cloudflare Workers and testing the Telegram bot

Опубликовано:

 

1 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@user-wq9jc7hr3r
@user-wq9jc7hr3r Месяц назад
Some bots are for downloading videos. Along with downloading the video, they also take screenshots from the middle of the video. Can you make such a bot?
@SimpleCodingTutorials
@SimpleCodingTutorials Месяц назад
Creating a bot that downloads videos from RU-vid may violate RU-vid’s Terms of Service. Making a video tutorial about such a bot could potentially encourage this violation. This is the reason why I choose not to create such content. However, from a technical standpoint, it is indeed possible to create such a bot.
@SantoshKumar-mg9nj
@SantoshKumar-mg9nj 6 дней назад
Thanks! bot is up and working fine. But the issue is not every url has file name and extension. Can you give some suggestion on that. Also it will be helpful to retain complete file name and extension.
@SimpleCodingTutorials
@SimpleCodingTutorials 6 дней назад
It depends on the type of URL. For example, for URLs like this example.com/files/download?id=12345 Check the HTTP response headers for Content-Disposition to extract the filename. const filename = fileResponse.headers.get('content-disposition').split('filename=')[1]; For URLs with Content-Disposition header like this httpbin.org/response-headers?Content-Disposition=attachment%3B%20filename%3D%22example.txt%22 Parse the Content-Disposition header to get the filename const contentDisposition = new URL(url).searchParams.get('Content-Disposition'); const filename = contentDisposition.match(/filename="(.+)"/)[1];
@SantoshKumar-mg9nj
@SantoshKumar-mg9nj 6 дней назад
Thanks for reply. I worked around it. And its great. But just found out about API limit i.e. 50mb. I came across with some bots that can send 2GB even upto 4GB files. Can we get any info about that in a separate video? I still can't figure out how ? Update- I tried Github actions Workflow to trigger with URL via CF's webhook. But resulted limit is same.
@SimpleCodingTutorials
@SimpleCodingTutorials 5 дней назад
@@SantoshKumar-mg9nj Yes, it is possible to handle larger files (up to 2GB) using the MTProto API. This API allows you to bypass the 50MB limit of the standard Bot API. I'll consider creating a video to show how you can use the MTProto API with JavaScript, including how to handle large file uploads and downloads.
@SantoshKumar-mg9nj
@SantoshKumar-mg9nj 5 дней назад
@@SimpleCodingTutorials Great ! Thanks. Eagerly waiting for it.
@hemanthpatelll
@hemanthpatelll 2 месяца назад
Bro Please Help Me 😭😭
@Black-ds3sj
@Black-ds3sj 2 месяца назад
How to update code, without use edit code option. because i use Android, It's hard to update here 😔
@SimpleCodingTutorials
@SimpleCodingTutorials 2 месяца назад
Unfortunately, there isn’t a dedicated Cloudflare Workers app for Android. To manage your Cloudflare Workers on a mobile device, you’ll need to use a web browser to visit the Cloudflare website.
@Black-ds3sj
@Black-ds3sj 2 месяца назад
@@SimpleCodingTutorials Api/GitHub Can be done with?
@hemanthpatelll
@hemanthpatelll 2 месяца назад
I need file to link bot bro please help me previous bot deployed but it is replying our message only😭
@SimpleCodingTutorials
@SimpleCodingTutorials 2 месяца назад
The code for all the videos is available in the description of each video. tinyurl.com/url-uploader-bot
@hemanthpatelll
@hemanthpatelll 2 месяца назад
@@SimpleCodingTutorials bro i have checked but it just replying the message i need file to link bot which gives link of our file
@SimpleCodingTutorials
@SimpleCodingTutorials 2 месяца назад
@@hemanthpatelll Don’t forget to replace your bot token in the first line where const telegramAuthToken = '1234567890';
@hemanthpatelll
@hemanthpatelll 2 месяца назад
@@SimpleCodingTutorials did bro but not came please can u give me your telegram username 😭
@VivekKumar-hk5km
@VivekKumar-hk5km 6 дней назад
​@@SimpleCodingTutorialswhat hemant is saying that needs "telegram file to direct link bot" hosted on cloudfare worker.
Далее
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
URL Uploader Bot Telegram
0:16
Просмотров 50 тыс.
Enable Cloudflare Secure DNS in Android
1:01
Просмотров 18 тыс.