Simple Telegram bot that responds with list of results obtained from Google.

Overview

Simple project focused on learning a little more about how Telegram bots work and are created.

The bot has a very basic functionality: the user types a question related to programming and the bot responds with a list of results obtained from Google with a filter for Stack Overfow topics. The results are obtained through web scraping using the library Jsoup.

The project uses the TelegramBotAPI library to facilitate communication with the Telegram Bot API.

Note: This bot is not hosted on any server, so there is no username available so you can test and see it working in practice. Sorry.

How to run and test

  • First, clone this project.

On Telegram

  • Connected to your Telegram account, start a conversation with @BotFather and create a new bot with whatever name you want.
  • After creating your bot, copy its token to be used later in the code.
  • (Optional) Add a /help command to your bot via @BotFather settings. This project can handle this command and send a help message, but if it doesn't add the command, it doesn't imply the bot's functionality.

In your IDE

  • With your bot created and the project code updated with your token, run the project in your IDE of choice. You need to keep it running.
  • Finally, start a conversation with your bot on Telegram. When starting the conversation, the bot should respond with a welcome message, indicating that it reacted to the /start command and everything is working. Submit questions and see if he answers them.

Note: In order for it to respond in real time, the project must be running in the IDE when you send the messages. If you send messages and the project is not running in the IDE, the bot will do nothing as it is not online and no server has been defined to handle messages at all times.

You might also like...
Re - Redirect outgoing calls to Signal or Telegram
Re - Redirect outgoing calls to Signal or Telegram

Re Redirect outgoing calls to Signal or Telegram. Tiny app to redirect outgoing

Redirect outgoing calls to Signal/Telegram/Threema.
Redirect outgoing calls to Signal/Telegram/Threema.

Red Redirect outgoing calls to Signal/Telegram/Threema. Tiny app to redirect outgoing calls to Signal/Telegram/Threema if available. You can cancel re

Android-TODO-LIST-VIPER - Android TODO LIST VIPER
Android-TODO-LIST-VIPER - Android TODO LIST VIPER

Android TODO List VIPER VIPER is an architectural approach for iOS mobile app de

Todo List Application is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item
Todo List Application is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item

Todo List Application is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item

AsukaBot - A simple Kotlin Discord Bot

The Discord bot of the serber, a private Discord server. Asuka is a Discord But running on the JDA API but made in kotlin.

Based on mirai, a fast simple bot for maimai DX

maimai-bot 一个基于 mirai 和 舞萌 DX 查分器 编写的 maimai DX QQ 机器人插件。

A simple Discord bot that aims to provide a snapshot of the join logs given a range of time for servers.
A simple Discord bot that aims to provide a snapshot of the join logs given a range of time for servers.

🧋 What is Humpy Dumpy? Humpy Dumpy is a simple Discord bot that aims to provide a snapshot of the join logs given a range of time for servers. It was

Simple configurable Twitch Chat Bot for Emote Repetition 😎

DopaminChatter Dopamin is the happiness hormone. What's better than a Twitch Chat with great Emote Usage and Emote Chains (same Emotes after another).

xCloud player for Google Chromecast with Google TV
xCloud player for Google Chromecast with Google TV

XCTV Player An awesome Microsoft xCloud player for Google Chromecast with Google

Owner
Jesus Ericks
Android Developer | Kotlin | Java
Jesus Ericks
The News App has been carried out within the framework of the MVVM architecture, information about news is obtained by consulting an API, it is built usisng Jetpack Copose, Coroutines, Dependency Injection with Hilt and Retrofit

Journalist The News App consists of an application that displays the latest news from EEUU from an API that provides official and updated information.

null 0 Nov 3, 2021
A repository that contains various examples of how to use the telegram-bot library.

Telegram-bot templates This repository contains simple different examples of how to use the telegram-bot library. How to use All the examples are conv

Jey 3 Nov 15, 2022
Synapse Moderation Bot - A bot for managing and moderating our community Discord server

Synapse Moderation Bot A bot for managing and moderating our community Discord server. Note This bot is not public. While you can host it on your own,

Synapse Technologies, LLC 1 Jul 16, 2022
TMDbHub - Listing movies using the TMDb API. You can filter results, view details, and save them to a collection

TMDb Hub Listing movies using the TMDb API. You can filter results, view details

David Varga 4 Dec 30, 2021
Project results for #JuaraAndroid2022

Project results for #JuaraAndroid2022

Patricia Fiona 6 Oct 27, 2022
An app to fetch a random user and display the results on UI

An app to fetch a random user and display the results on UI

Patricio J. Conti 4 Aug 11, 2022
GoogleSearchBot - Google Search Bot With Kotlin

GoogleSearchBot Simple telegram bot on kotlin with spring framework With command

Kirill Golovin 1 Feb 7, 2022
Bringing webhooks into Telegram. Push messages to chats via URL with a simple API.

Webhooks over Telegram (WoT) WoT aims to provide a simple API for registering webhooks and sending messages to Telegram chats via them using a single

d1s utils 2 Oct 5, 2022
The third-party Telegram android app.

The third-party Telegram android app.

NekoX Dev 3.2k Nov 23, 2022
Telegram messenger for Android

Telegram messenger for Android Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the

DrKLO 21.1k Nov 30, 2022