with World News API and Telegram?
Emit new event whenever recent news are published. Calling this endpoint requires 1 point per page, up to 1000 news. See the docs here
Emit new event each time a Telegram Bot command is received.
Emit new event each time a channel post is created or updated.
Emit new event each time a Telegram message is created or updated.
Extract a news article from a website to a well structure JSON object. See the docs here. Calling this endpoint requires 1 point, plus 2 points if analyze is true.
Create an additional invite link for a chat, See the docs for more information
Retrieve the latitude and longitude of a location name. See the docs here. Calling this endpoint requires 1 point.
Edits photo or video messages. See the docs for more information
The World News API provides access to news articles from around the world in real-time. With it, you can fetch the latest news by category, country, language, and keyword. In Pipedream, this powerful API integrates into workflows, allowing you to automate actions based on current events, monitor specific topics, and even enrich your applications with timely content.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
world_news_api: {
type: "app",
app: "world_news_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.worldnewsapi.com/search-news`,
params: {
"api-key": `${this.world_news_api.$auth.api_key}`,
text: `{your_text}`,
},
})
},
})
The Telegram Bot API allows you to build bots that can interact with users on the Telegram platform. Using Pipedream, you can automate messaging, handle commands, and trigger actions based on conversations or alerts. Pipedream's serverless execution model enables you to create complex workflows involving Telegram messages without managing any infrastructure. With Pipedream's integration, you can process inbound messages, send outbound notifications, and connect the Telegram Bot API with numerous other services to create powerful automation solutions.
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`,
})
},
})