Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Telegram Bot -- Using APIs

So I have limited experience in Java (have some experience with APIs but little experience making bots or clients). However, I have switched to using Telegram instead of iMessage simply because it's easier to use and more responsive. I also appreciate the open-source nature and the ability for me to create a bot. But I don't know much in terms of other languages, and am only a student. I was wondering if it was possible to create a bot that, when a certain string is entered, followed by a term, the bot searches Wikipedia and returns the first page that matches the term (or some exception).

Lofty idea... but I have no idea what I'm doing. Does anyone know if there's a place I could find a tutorial (not Youtube) or if somebody with more knowledge than me (most people who read this) could teach me? That'd be amazing.

My background: Processing AP Computer Science A Limited API use

TL;DR Wikipedia bot for Telegram, need help.

like image 451
Quontas Avatar asked May 10 '15 21:05

Quontas


2 Answers

My simple Java API for Telegram bots

https://github.com/pengrad/java-telegram-bot-api

compile 'com.github.pengrad:java-telegram-bot-api:3.6.0'
like image 67
Stas Parshin Avatar answered Sep 18 '22 12:09

Stas Parshin


The Telegram Bot API is now officially available.

Resources:

  • Introduction
  • API
  • Python wrapper
  • Node.js wrappers
  • Ruby wrapper - Another one
  • PHP wrapper
like image 28
mcont Avatar answered Sep 21 '22 12:09

mcont