<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ruslan</title>
    <description>The latest articles on DEV Community by Ruslan (@ruslanty).</description>
    <link>https://dev.to/ruslanty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4248272%2F4b4a7ff1-cc8b-4c5f-a39d-0dc941d051c8.png</url>
      <title>DEV Community: Ruslan</title>
      <link>https://dev.to/ruslanty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ruslanty"/>
    <language>en</language>
    <item>
      <title>I Built a Simple Telegram Bot to Find User and Chat IDs</title>
      <dc:creator>Ruslan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 20:06:10 +0000</pubDate>
      <link>https://dev.to/ruslanty/i-built-a-simple-telegram-bot-to-find-user-and-chat-ids-1pi7</link>
      <guid>https://dev.to/ruslanty/i-built-a-simple-telegram-bot-to-find-user-and-chat-ids-1pi7</guid>
      <description>&lt;p&gt;Sometimes you need a Telegram user ID or a group chat ID, and finding it turns into a bunch of unnecessary steps.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Telegram Info Bot&lt;/strong&gt; to make that easier. Send a command, get the information, copy what you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;The bot has five commands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/me&lt;/code&gt; - your Telegram ID and profile details&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/chat&lt;/code&gt; - current chat ID, type, and title&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/start&lt;/code&gt; - get started&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/help&lt;/code&gt; - available commands&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/privacy&lt;/code&gt; - how the bot handles data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works in private chats and groups.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;I built it with Python, FastAPI, and aiogram. The repository also includes Docker support and automated checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying on Vercel
&lt;/h2&gt;

&lt;p&gt;You can deploy your own instance on Vercel:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fork the repository and import it into Vercel.&lt;/li&gt;
&lt;li&gt;Select the FastAPI preset.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;BOT_TOKEN&lt;/code&gt; and &lt;code&gt;WEBHOOK_SECRET&lt;/code&gt; to the Production environment.&lt;/li&gt;
&lt;li&gt;Deploy and check &lt;code&gt;/health/ready&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;WEBHOOK_BASE_URL&lt;/code&gt; locally and register the Telegram webhook using the included CLI.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The README covers the exact commands, along with local development and Docker setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Bot:&lt;/strong&gt; &lt;a href="https://t.me/TgProfileInfoBot" rel="noopener noreferrer"&gt;https://t.me/TgProfileInfoBot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source code:&lt;/strong&gt; &lt;a href="https://github.com/ruslanty/telegram-info-bot" rel="noopener noreferrer"&gt;https://github.com/ruslanty/telegram-info-bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is open source under the MIT license. If you use it or run into something that could be improved, I'd be interested to hear about it.&lt;/p&gt;

</description>
      <category>python</category>
      <category>telegram</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
