|
🤖 Telegram Bot Development – Episode 1: Telegram Bot කියන්නේ මොකක්ද?

🤖 Telegram Bot Development – Episode 1: Telegram Bot කියන්නේ මොකක්ද?

technology programming TelegramAutomation PythonTelegramBot
By Rasanjana 2025-04-10 16:30:14

Telegram කියන්නේ ලෝකේ ඉතා ජනප්‍රිය messaging platform එකක්. හැමෝම දන්නව. නමුත් ඔයාලා දන්නවද Telegram Bot කියන වචනය? එය තමයි automated, intelligent assistant ලා telegram environment එක තුළ ක්‍රියාත්මක වෙන හැටි.


මෙම article එකෙන් අපි බලමු:

  • Telegram Bot කියන්නේ කුමක්ද?
  • Bot එක්ක සාමාන්‍ය Telegram account එකට තියෙන වෙනස මොකක්ද?
  • Telegram Bot වල practical භාවිතයන්.
  • ඉදිරියට අපි කරන්න යන දේවල්.

🤔 Telegram Bot කියන්නේ මොකක්ද?

Telegram Bot කියන්නේ Telegram API එක භාවිතා කරමින්, predefined logic එකකට අනුව function වෙන system එකක්.

ඔබට පුළුවන් එවන් bot එකක්:

  • එකී පණිවිඩවලට පිළිතුරු දිය
  • දත්ත එකතු කරන්න
  • external APIs එකට request යවන්න
  • payment integration එකක් තියන්න
  • ඔයාගේම AI assistant එකක් වශයෙන් ක්‍රියා කරන්න


Bot එකක් කියන්නේ "මිනිස්සුන්ට" වෙනුවෙන් ක්‍රියා කරන digital agent එකක්.

🧩 සාමාන්‍ය User vs Bot

Feature User Account Bot Manual interaction ✔️ ❌ Automated responses ❌ ✔️ Can join groups ✔️ ✔️ Sends proactive messages ❌ ✔️ (with some limitations) Needs Bot Token ❌ ✔️ 🛠️ Telegram Bot වල භාවිතය

✅ Customer support automation

✅ Group moderation (anti-spam / welcome messages)

✅ News & weather updates

✅ Online ordering / chat commerce

✅ Payment integration (Telegram supports native payments!)

✅ Telegram Games 🎮


🚀 මේ Series එකෙන් ඔබට ඉගෙන ගන්න හැටි:

  1. Telegram BotFather භාවිතා කර bot එකක් register කරන විදිහ
  2. API Token එක ලබා ගන්නා ආකාරය
  3. Python (හෝ Node.js) භාවිතයෙන් Bot logic develop කරන හැටි
  4. Webhook / polling වැනි techniques භාවිතයෙන් message receive කිරීම
  5. VPS එකක bot එක host කිරීම
  6. Real-world use case projects


📌 අද task එක:

  1. Telegram එක open කරන්න
  2. @BotFather කියන official Telegram bot එක open කරන්න
  3. /start කියලා type කරන්න
  4. ඒකෙන් “Create a new bot” කියන option එක click කරන්න
  5. ඔබේ bot එකට නමක් දෙන්න, username එකක්ත් set කරන්න
  6. Token එකක් ලැබෙනවා – මේක තව පියවර වලදි දැන්ම බලාගෙන යන්න


🔒 අවවාදයක්:

Token එක ඔබටම තබා ගන්න. එය ඔබේ bot එකේ ආරක්ෂාවයි. වෙන කෙනෙකුට එය ලැබුණොත්, ඔහුට ඔබේ bot එකට full control ලැබේ.


🔄 ඉදිරි පාඩමෙන්:

BotFather API token එකක් ලබාගත් පසු, අපි Python භාවිතයෙන් bot එකකට “hi” කියන පණිවිඩයක් ලැබුනාම පිළිතුරු දිය හැකිවෙන්න කොඩ් කරන්න ඉගෙන ගමු. ❤️


📌 ඔබට අද lesson එක වැදගත් වුණාද?


Comment එකක් දාන්න, ලගදීම Episode 2 එක upload කරනවා!


Rasanjana

Rasanjana

Member since 2025-04-09 13:55:06

Comments

Please login to post a comment.

janidu
janidu 2025-04-10 16:47:05

❤️