🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← Telegram Bot

Create Chat Invite Link with Telegram Bot API

Pipedream makes it easy to connect APIs for Telegram Bot and 700+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create Chat Invite Link with the Telegram Bot API
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Create Chat Invite Link with the Telegram Bot API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Create Chat Invite Link action
    1. Connect your Telegram Bot account
    2. Configure Chat ID
    3. Optional- Configure Invite link name
    4. Optional- Configure Invite link expire date
    5. Optional- Configure Maximum number of users
    6. Optional- Configure Creates join request
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger


This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Create Chat Invite Link on Telegram Bot
Description:Create an additional invite link for a chat, [See the docs](https://core.telegram.org/bots/api#createchatinvitelink) for more information


import telegramBotApi from "../../telegram_bot_api.app.mjs";

export default {
  key: "telegram_bot_api-create-chat-invite-link",
  name: "Create Chat Invite Link",
  description: "Create an additional invite link for a chat, [See the docs](https://core.telegram.org/bots/api#createchatinvitelink) for more information",
  version: "0.0.1",
  type: "action",
  props: {
    chatId: {
      propDefinition: [
    name: {
      propDefinition: [
    expire_date: {
      propDefinition: [
    member_limit: {
      propDefinition: [
    creates_join_request: {
      propDefinition: [
  async run({ $ }) {
    const resp = await this.telegramBotApi.createChatInviteLink(this.chatId, {
      name: this.name,
      expire_date: this.expire_date,
      member_limit: this.member_limit,
      creates_join_request: this.creates_join_request,
    $.export("$summary", `Successfully created chat invite link, "${this.chatId}"`);
    return resp;


This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
Telegram BottelegramBotApiappThis component uses the Telegram Bot app.
Chat IDchatIdstring

Enter the unique identifier for the target chat (e.g. 1035597319) or username of the target public chat (in the format @channelusername or @supergroupusername). For example, if the group's public link is t.me/mygroup, the username is @mygroup.

Invite link namenamestring

Invite link name; 0-32 characters

Invite link expire dateexpire_dateinteger

Point in time (Unix timestamp) when the link will expire, in unix time (e.g. 1567780450).

Maximum number of usersmember_limitinteger

Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

Creates join requestcreates_join_requestboolean

True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified


Telegram Bot uses API keys for authentication. When you connect your Telegram Bot account, Pipedream securely stores the keys so you can easily authenticate to Telegram Bot APIs in both code and no-code steps.

To use the Telegram Bot API, you must first create a new bot by chatting with the BotFather.

At the end of that process, you'll receive a token to authorize requests for your bot. Add that token below.

About Telegram Bot

Telegram is a cloud-based instant messaging and voice over IP service

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."