telegraf
telegram-bot-api
Our great sponsors
telegraf | telegram-bot-api | |
---|---|---|
14 | 26 | |
7,658 | 2,809 | |
2.8% | 4.2% | |
8.9 | 9.0 | |
about 2 months ago | 27 days ago | |
TypeScript | C++ | |
MIT License | Boost Software License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
telegraf
-
Is there any telegram bot to forward any message given to an special channel?
Simply use telegraf : https://telegraf.js.org/
-
I own an advertisement group and would like two things.. a bot that prevents people from using advertisements more than a thousand characters... and a bot for English only groups. anyone?
this is pretty simple , you can create a bot yourself which simply listens for every message checks length and if exceeded deletes the message (bot must be added as admin ingroup and shows have read permission in bot settings) , I would suggest you to use https://github.com/telegraf/telegraf for the code,
-
How to create a Telegram Bot using NodeJS
In this project we will use the Telegraf library to create the bot. To install it, you can use the npm install command.
-
🥳 KaufmanBot v 3.2.0 🥳
Changed the main library for working with telegram from https://telegraf.js.org to https://grammy.dev, updated the source code for better work with typings
-
Telegram Bots for Begginers
Of course, it's good to write API requests yourself. It reduces the dependency on third-party libraries and allows you to control the behavior of the code more. But when there are more such methods than twenty, it already increases the size of the code. It becomes difficult to manage all the logic. This is where third-party libraries(frameworks) come to the rescue. After choosing a language, you can consider the options of different libraries from the list here, on the official Telegram page. For JavaScript I recommend using node-telegram-bot-api and telegraf. For Python you can take pyTelegramBotAPI and aiogram(highly recommended).
-
Show HN: We are trying to (finally) get tail-calls into the WebAssembly standard
It’s an expressive type system, but ime it allows developers to go crazy on type interdependencies and general entanglement, so you can’t just go to the “header” and quickly figure out what your method or a return value really is, despite TS has structural typing.
E.g. look at this: https://github.com/telegraf/telegraf/blob/v4/src/telegram-ty...
-
Newbie Help: Telegraf telegram bot with async/fetch, media send and async management
The bot uses telegraf framework, which is an overlay for the original telegram api, which is a nightmare in code form.
- Desarrollando un Bot para Telegram
-
Telegram celebrates 700M Users and introduces Telegram Premium
Honestly I found their API one of the worst ones I've ever used. The documentation is lacking, and they have some unintuitive quirks like posting messages with http GET requests and randomly concatenating strings in params (botNAMEOFBOT anyone?).
I didn't enjoy using it without a third party library [1].
Sending a single message is easy, but using the rest of telegram's features is "meh" when using pure API calls.
If you want to see a well designed API, you should take a look at FTX or Stripe. I love those two :)
[1] https://telegraf.js.org
-
Telegraf VS Node-Telegram-Bot-API
Today the most popular ways to build telegram chat bots in node js are Telegraf and Node-Telegram-Bot-Api. The second is more popular by weekly downloads(250.000), but in this post I don't want to equalize them by stats. I want to talk about my experience with them, in which cases I used them and show you really nice guide, especially for Telegraf, cause they haven't readable docs for newbies or people who don't use typescript.
telegram-bot-api
-
Hide sender name
Is not that hard, they have amazing documentation about it: https://core.telegram.org/bots
-
Telegram OAuth Authorization for Your Site
You can make authorization via Telegram another way. It works. But today we want to do the classic OAuth Authorization. Before you begin, you need to create a Telegram bot and obtain your bot token. You can do this in @BotFather in Telegram. For more information on initiating a bot, read the Telegram Bot API documentation: https://core.telegram.org/bots
-
Is my idea possible to implement?
Absolutely possible. Here's the github page to the Telegram bot API. You would just need to check for incoming messages, check the body of the message for a word or phrase, and then send a message back with a photo or gif and an encouraging message.
-
How I built an AI-based Telegram bot in 21 minutes with Make and OpenAI
Creating a Telegram bot is fun: there's no website, no sign up, no forms — you just use a... bot. Yes, a bot that creates bots. It's called the BotFather 😂
-
A simple forwarder from WhatsApp to Telegram written in Go
Telegram has a bot API server that provides API to control the bots and get updates. Their own instance has some restrictions like you cannot download files bigger than 20MB. So, using a self hosted bot API server, you can overcome those limits.
- Serverless + JS: Um bot de web-scrapping diário
-
From BotFather to 'Hello World'
General Bot Platform Overview
-
Não consigo abrir api.telegram.org na Claro
$ curl -4 -v https://api.telegram.org * Trying 149.154.167.220:443... * TCP_NODELAY set * Connected to api.telegram.org (149.154.167.220) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=api.telegram.org * start date: Mar 24 15:21:45 2022 GMT * expire date: Apr 25 15:21:45 2023 GMT * subjectAltName: host "api.telegram.org" matched cert's "api.telegram.org" * issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certs.godaddy.com/repository/; CN=Go Daddy Secure Certificate Authority - G2 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * Using Stream ID: 1 (easy handle 0x555fdb2de2f0) > GET / HTTP/2 > Host: api.telegram.org > user-agent: curl/7.68.0 > accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! < HTTP/2 302 < server: nginx/1.18.0 < date: Tue, 18 Oct 2022 00:00:24 GMT < content-type: text/html < content-length: 145 < location: https://core.telegram.org/bots < strict-transport-security: max-age=31536000; includeSubDomains; preload < access-control-allow-origin: * < access-control-allow-methods: GET, POST, OPTIONS < access-control-expose-headers: Content-Length,Content-Type,Date,Server,Connection < 302 Found 302 Found nginx/1.18.0 * Connection #0 to host api.telegram.org left intact
-
Can anyone teach me how to make these?
It's done via bots, which let you add clickable options to posts. Here's an FAQ on bots: https://core.telegram.org/bots
- Desarrollando un Bot para Telegram
What are some alternatives?
node-telegram-bot-api - Telegram Bot API for NodeJS
aiogram - aiogram is a modern and fully asynchronous framework for Telegram Bot API written in Python using asyncio
node-telegram-bot-boilerplate - 🤖 Create telegram bot with this friendly nodejs boilerplate
Gotify - A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
pyTelegramBotAPI - Python Telegram bot api.
python-telegram-bot - We have made you a wrapper you can't refuse
Express - Fast, unopinionated, minimalist web framework for node.
n8n - Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
Telethon - Pure Python 3 MTProto API Telegram client library, for bots too!
ps5-stock-alert - Be smart about hunting for a PS5
Signal-Desktop - A private messenger for Windows, macOS, and Linux.