You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{telegramSendMessage,telegramSendPhoto,telegramSendAudio,telegramSendDocument,telegramSendLocation,telegramSendContact,telegramSendPoll,telegramSendDice,}from'telegram-message-send'constbotKey='#########'constchatId='#########'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 new Telegram bot with BotFather
Create a Telegram bot with BotFather before connecting your bot to Telegram.