Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Emit new event each time a Telegram Bot command is received.
Emit new event when a new playlist is created or followed by the current Spotify user.
Emit new event each time a channel post is created or updated.
Emit new event for each new track saved to the current Spotify user's Music Library.
Emit new event each time a Telegram message is created or updated.
Create an additional invite link for a chat, See the docs for more information
Add one or more items to a user’s playlist. See the docs here.
Create a playlist for a Spotify user. The playlist will be empty until you add tracks. See the docs here.
Edits photo or video messages. See the docs for more information
With the Telegram Bot API, you can build bots that perform a variety of tasks,
including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
telegram_bot_api: {
type: "app",
app: "telegram_bot_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.telegram.org/bot${this.telegram_bot_api.$auth.token}/getMe`,
})
},
})
Assuming you have a Spotify Developer account (https://developer.spotify.com/), you can use the Spotify API to build the following:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
spotify: {
type: "app",
app: "spotify",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.spotify.com/v1/me`,
headers: {
Authorization: `Bearer ${this.spotify.$auth.oauth_access_token}`,
},
})
},
})