Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
telegram-message-send
Advanced tools
Readme
yarn add telegram-message-send
npm install telegram-message-send
import {
telegramSendMessage,
telegramSendPhoto,
telegramSendAudio,
telegramSendDocument,
telegramSendLocation,
telegramSendContact,
telegramSendPoll,
telegramSendDice,
} from 'telegram-message-send'
const botKey = '#########'
const chatId = '#########'
telegramSendMessage(botKey, chatId, 'Hello World')
telegramSendPhoto(botKey, chatId, 'https://avatars.githubusercontent.com/u/100691616?s=200&v=4', 'Custom Caption')
telegramSendAudio(botKey, chatId, 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3', 'Custom Caption')
telegramSendDocument(
botKey,
chatId,
'https://s2.q4cdn.com/175719177/files/doc_presentations/Placeholder-PDF.pdf',
'Custom Caption',
)
telegramSendLocation(botKey, chatId, 41.084677113651814, 29.00455392606353)
telegramSendContact(botKey, chatId, 'Ilker Balcilar', '+905555555555')
telegramSendPoll(botKey, chatId, 'Which one would you prefer', ['Javascript', 'Typescript'])
telegramSendDice(botKey, chatId, 'dice')
Create a Telegram bot with BotFather before connecting your bot to Telegram.
In order to receive a message from the bot, you must first send a message to the bot and create a chat.
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
text | yes | string | Hello World |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
photoURL | yes | string | https://avatars.githubusercontent.com/u/100691616?s=200&v=4 |
caption | no | string | Custom Caption |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
audioURL | yes | string | https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3 |
caption | no | string | Custom Caption |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
documentURL | yes | string | https://s2.q4cdn.com/175719177/files/doc_presentations/Placeholder-PDF.pdf |
caption | no | string | Custom Caption |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
latitude | yes | number | 41.084677113651814 |
longitude | yes | number | 29.00455392606353 |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
name | yes | string | Ilker Balcilar |
phone_number | yes | string | +905555555555 |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
question | yes | string | Which one would you prefer |
options | yes | Array<string> | ["Javascript", "Typescript"] |
Prop | Required | Type | Example |
---|---|---|---|
botKey | yes | string | ######### |
chatId | yes | string | ######### |
type | no | string | dice / dart / bowling / basketball / football / slot |
FAQs
Send message using telegram bot and api.
The npm package telegram-message-send receives a total of 84 weekly downloads. As such, telegram-message-send popularity was classified as not popular.
We found that telegram-message-send demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.