Skip to main content
← Back to Blog

How to Create Custom Commands for Your Telegram Group

telegram custom commands bot automation

How to Create Custom Commands for Your Telegram Group

Every Telegram group has questions that get asked repeatedly. "What are the rules?" "Where do I find the schedule?" "How do I contact support?" Instead of answering these manually every time, you can create custom commands that instantly reply with the information your members need. Custom commands are one of the most useful features in any group admin's toolkit.

What Are Custom Commands?

Custom commands are user-defined bot responses that trigger when someone types a specific command in the group. You define the command name and the response text, and the bot handles the rest.

For example, you could create a /faq command that displays your group's frequently asked questions, or a /schedule command that shows upcoming events. Members type the command, and the bot instantly replies with the content you configured.

Creating Your First Custom Command

OmniGest makes it simple with the /addcmd command. The syntax is straightforward:

/addcmd commandname Your response text here

For example, to create a command that shows group rules:

/addcmd rules 1. Be respectful to all members
2. No spam or self-promotion
3. Stay on topic
4. English only in the main chat

Now, whenever someone types /rules in the group, the bot responds with your custom text.

Only group administrators can create, edit, or delete custom commands. Regular members can only use them.

Managing Your Commands

Listing All Commands

To see every custom command configured in your group, use:

/listcmds

The bot displays a clean list of all command names so members and admins can see what is available.

Deleting a Command

If a command is no longer needed, remove it with:

/delcmd commandname

The command stops working immediately. If you need to update a command's content, delete it and create it again with the new text.

For complete command reference, see the Custom Commands documentation.

HTML Formatting Support

Custom commands support HTML formatting, giving you control over how responses look. You can use bold, italic, links, and more.

Supported HTML tags include:

  • <b>text</b> for bold
  • <i>text</i> for italic
  • <u>text</u> for underline
  • <code>text</code> for inline code
  • <a href="url">text</a> for hyperlinks

Here is an example of a richly formatted custom command:

/addcmd links <b>Useful Links</b>

<a href="https://example.com">Official Website</a>
<a href="https://example.com/docs">Documentation</a>
<a href="https://example.com/discord">Discord Server</a>

<i>Last updated: April 2026</i>

This creates a /links command that displays a nicely formatted message with clickable URLs.

Practical Use Cases

FAQ Command

The most common use case. Create a /faq command with answers to your top 5-10 questions. This reduces repetitive messages and helps new members find information quickly without waiting for an admin to respond.

/addcmd faq <b>Frequently Asked Questions</b>

<b>Q: How do I join the project?</b>
A: Fill out the form at example.com/join

<b>Q: When are meetings?</b>
A: Every Tuesday at 19:00 CET

<b>Q: Who do I contact for issues?</b>
A: Message @admin_username directly

Groups that represent brands, communities, or projects often need to share their social media profiles. A /social command puts everything in one place.

Event Information

For groups centered around events, meetups, or tournaments, a /event command can display the next upcoming event with date, time, location, and registration link. Update it as events change.

Welcome Resources

Create a /start or /resources command that new members can use to catch up. Include links to pinned messages, introductory guides, or community guidelines.

Support Contacts

A /support command listing admin usernames, email addresses, or ticket system links helps members find help without scrolling through old messages.

Tips for Effective Custom Commands

Keep Command Names Short

Members need to type these commands, so keep names concise. Use /rules instead of /grouprulescomplete. Use /faq instead of /frequentlyaskedquestions.

Use Descriptive Content

Since the bot displays your text exactly as written, take time to format it clearly. Use line breaks to separate sections and HTML formatting to highlight key information.

Do Not Overload

Having 50 custom commands defeats the purpose. Stick to 5-10 essential commands that cover the most common needs. If you need more, consider organizing information on a website and linking to it with a single command.

Pin a Command List

After setting up your commands, post /listcmds and pin the result. New members can immediately see what commands are available without guessing.

How Custom Commands Differ from Bot Commands

Telegram has a built-in "bot command" system where commands appear in a menu when you type /. Custom commands created through OmniGest work alongside this system. They function as regular text triggers -- when the bot sees a message starting with your custom command, it responds with the configured text.

This means custom commands work instantly, even on mobile, and do not require any Telegram API registration. You create them, and they work.

Combine with Other Features

Custom commands pair well with other OmniGest features:

Start Creating Commands Today

Custom commands are free and unlimited with OmniGest. Add the bot to your group, give it admin rights, and start creating commands that save you time and help your members.

Add @OmniGest_bot to your group and type /addcmd to create your first custom command right now. See the Getting Started guide for a full setup walkthrough.