DEV Community

Cover image for Small step to create telegram bot
Egit S.
Egit S.

Posted on • Originally published at esabook.wordpress.com on

2 1

Small step to create telegram bot

  1. Open conversation with @BotFather.
  2. Post /start, and you will see:

telegram_bot_help

  1. Post /newbot
  2. Post name and username
  3. Done, after you get ​token​ like as 680788960:AAEKP9xGSZK9uyWGGouZFYmTkCN8i_y0w

Sending message to channel:

  1. Open url or get => https://api.telegram.org/bottoken/sendMessage?chat_id=chat_id&text=test
  2. Done

Finding chat_id:

  1. Add bot to as ​channel administrator
  2. Post /start to send bot command
  3. Open url or get => https://api.telegram.org/bottoken/getupdates
  4. See channel_post.chat.id
  5. Done

for more api kindly goto https://core.telegram.org/bots/api

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay