npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

telegram-hottest-message

v1.0.7

Published

Get the hottest messages from a specified Telegram channel and forward them to a target chat.

Readme

Telegram Hottest Message

获取 Telegram 指定频道中最热门的消息(表情回复最多的),并可以转发到指定聊天。(比如:想获取某些福利群组里,点赞最多最火的消息)

请放心,THM没收集你的任何信息,用的npm包都是官方的,请踏实儿使用~enjoy~

demo-1.0.3

功能特性

  • 🔥 根据消息反应(表情回复)数量排序,找出最热门的消息
  • 📨 支持将热门消息转发到指定聊天
  • 🌐 支持 SOCKS5/HTTP 代理
  • 🎯 可自定义获取消息数量和转发数量
  • 📱 交互式选择频道对话
  • 💾 支持会话持久化

安装

从 npm 安装(推荐)

npm install -g telegram-hottest-message

从源码构建

git clone https://github.com/jianqiao0313/Telegram-Hottest-Message.git
cd Telegram-Hottest-Message
npm install
npm run build
npm link

使用方法

基本用法

thm

完整参数

thm -I your_api_id -H your_api_hash -S your_session_string -M 50000 -T 20 -P socks5://[user:pass@]127.0.0.1:7890 -F me

参数说明

| 参数 | 长参数 | 说明 | 默认值 | |------|--------|------|--------| | -I | --apiId | Telegram API ID | 2040 | | -H | --apiHash | Telegram API Hash | b18441a1ff607e10a989891a5462e627 | | -S | --session | 会话字符串 | 无 | | -M | --maxMessages | 最大获取消息数 | 100000 | | -T | --top | 转发的热门消息数量 | 100 | | -O | --offsetId | 消息偏移ID | 无 | | -P | --proxy | 代理地址 | 无 | | -F | --forward | 转发目标聊天 | me |

获取 API 凭证

  1. 访问 my.telegram.org
  2. 登录您的 Telegram 账户
  3. 点击 "API development tools"
  4. 创建新应用程序获取 api_idapi_hash

会话字符串

首次运行时,程序会提示您输入手机号和验证码进行登录,登录成功后会显示会话字符串。请保存此字符串用于后续使用。

使用示例

示例 1:使用手机验证码或Telegram验证码登录

thm

示例 2:使用默认 API 凭证

thm -S "your_session_string_here"

示例 3:获取前 50 条热门消息

thm -S "your_session_string_here" -T 50

示例 4:使用自定义代理

thm -S "your_session_string_here" -P "socks5://user:[email protected]:1080"

示例 5:转发到特定聊天

thm -S "your_session_string_here" -F "your_channel_username"

工作流程

  1. 🔐 使用提供的凭证登录 Telegram
  2. 📋 获取并显示可用的对话列表
  3. 🎯 选择要分析的频道
  4. 📥 获取频道中的消息
  5. 🔥 根据反应数量排序消息
  6. 📤 将热门消息转发到指定聊天

代理配置

支持以下代理格式:

系统要求

  • Node.js >= 22.0.0
  • npm >= 8.0.0

开发

开发环境运行

npm run dev

构建

npm run build

代码检查

npm run lint

许可证

MIT

贡献

欢迎提交 Issue 和 Pull Request!

⭐ Star

Stargazers over time

免责声明

请遵守 Telegram 的使用条款和相关法律法规。本工具仅供学习和个人使用。