← AWeber + Telegram Bot integrations

Create Chat Invite Link with Telegram Bot API on Subscriber Added from AWeber API

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

Trigger workflow on
Subscriber Added from the AWeber API
Next, do this
Create Chat Invite Link with the Telegram Bot API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a AWeber trigger and Telegram Bot action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Subscriber Added trigger
    1. Connect your AWeber account
    2. Configure Polling schedule
    3. Select a Account ID
  3. 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
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are 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.

Trigger

Description:Emit new event when a subscriber in a list is added. [See the docs here](https://api.aweber.com/#tag/Subscribers/paths/~1accounts~1{accountId}~1lists~1{listId}~1subscribers/get)
Version:0.0.3
Key:aweber-subscriber-added

AWeber Overview

The AWeber API enables you to interact with your AWeber account data and
perform actions, such as creating and updating subscribers, retrieving campaign
statistics, and managing account preferences. You can use the API to build
applications that integrate with AWeber, such as a custom subscriber management
system or a campaign reporting tool.

Trigger Code

import constants from "../../common/constants.mjs";
import common from "../common.mjs";

export default {
  ...common,
  key: "aweber-subscriber-added",
  name: "Subscriber Added",
  description: "Emit new event when a subscriber in a list is added. [See the docs here](https://api.aweber.com/#tag/Subscribers/paths/~1accounts~1{accountId}~1lists~1{listId}~1subscribers/get)",
  type: "source",
  version: "0.0.3",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getResourceFn() {
      return this.aweberApp.getSubscribersForAccount;
    },
    getResourceFnArgs(args) {
      return {
        ...args,
        accountId: this.accountId,
        params: {
          [constants.PAGINATION.OPTIONS_PROP]: "findSubscribers",
        },
      };
    },
    getSummary(resource) {
      return `Subscriber added ${resource.email}`;
    },
  },
};

Trigger Configuration

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.
LabelPropTypeDescription
AWeberaweberAppappThis component uses the AWeber app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Polling scheduletimer$.interface.timer

How often to poll the AWeber API

Account IDaccountIdintegerSelect a value from the drop down menu.

Trigger Authentication

AWeber uses OAuth authentication. When you connect your AWeber account, Pipedream will open a popup window where you can sign into AWeber and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any AWeber API.

Pipedream requests the following authorization scopes when you connect your account:

account.readlist.readlist.writesubscriber.readsubscriber.writesubscriber.read-extendedemail.reademail.write

About AWeber

Powerfully-Simple Email Marketing

Action

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.4
Key:telegram_bot_api-create-chat-invite-link

Telegram Bot Overview

With the Telegram Bot API, you can build bots that perform a variety of tasks,
including:

  • Sending and receiving messages
  • Social networking
  • Content management
  • File sharing
  • Location sharing
  • Bot administration
  • And more!

Action Code

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.4",
  type: "action",
  props: {
    telegramBotApi,
    chatId: {
      propDefinition: [
        telegramBotApi,
        "chatId",
      ],
    },
    name: {
      propDefinition: [
        telegramBotApi,
        "link_name",
      ],
    },
    expire_date: {
      propDefinition: [
        telegramBotApi,
        "expire_date",
      ],
    },
    member_limit: {
      propDefinition: [
        telegramBotApi,
        "member_limit",
      ],
    },
    creates_join_request: {
      propDefinition: [
        telegramBotApi,
        "creates_join_request",
      ],
    },
  },
  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;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
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

Action Authentication

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.


Telegram Bot how to

After you create your bot, copy the bot token and add it below.

About Telegram Bot

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

More Ways to Connect Telegram Bot + AWeber

Add Subscriber with AWeber API on Message Updates (Instant) from Telegram Bot API
Telegram Bot + AWeber
 
Try it
Add Subscriber with AWeber API on New Updates (Instant) from Telegram Bot API
Telegram Bot + AWeber
 
Try it
Get Accounts with AWeber API on Message Updates (Instant) from Telegram Bot API
Telegram Bot + AWeber
 
Try it
Get Accounts with AWeber API on New Updates (Instant) from Telegram Bot API
Telegram Bot + AWeber
 
Try it
Get Lists with AWeber API on Message Updates (Instant) from Telegram Bot API
Telegram Bot + AWeber
 
Try it
Subscriber Added from the AWeber API

Emit new event when a subscriber in a list is added. See the docs here

 
Try it
New Bot Command Received (Instant) from the Telegram Bot API

Emit new event each time a Telegram Bot command is received.

 
Try it
New Channel Updates (Instant) from the Telegram Bot API

Emit new event each time a channel post is created or updated.

 
Try it
New Message Updates (Instant) from the Telegram Bot API

Emit new event each time a Telegram message is created or updated.

 
Try it
New Updates (Instant) from the Telegram Bot API

Emit new event for each new Telegram event.

 
Try it
Add Subscriber with the AWeber API

Add subscribers to the specified account and list. See the docs here.

 
Try it
Get Accounts with the AWeber API

Get a paginated collection of accounts. See the docs here.

 
Try it
Get Lists with the AWeber API

Get a paginated collection of subscriber lists. See the docs here.

 
Try it
Get Subscribers with the AWeber API

Get a paginated collection of subscribers under the specified account and list. See the docs here.

 
Try it
Update Subscriber with the AWeber API

Update the information for the specified subscriber by email. See the docs here.

 
Try it