All Projects → trigun117 → TelegramBot-Go

trigun117 / TelegramBot-Go

Licence: MIT license
Telegram bot which search information in Wikipedia and written on Go language

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to TelegramBot-Go

rails-rest-api
A simple RoR 5 REST API demo with JWT authentication.
Stars: ✭ 25 (-28.57%)
Mutual labels:  travis-ci
travis-ci-latex-pdf
Overview of different methods to build LaTeX with GitHub Actions or Travis-CI (idea by @jackolney but completely rewritten by @PHPirates and contributors).
Stars: ✭ 113 (+222.86%)
Mutual labels:  travis-ci
wikipedia-preview
wikimedia.github.io/wikipedia-preview/main
Stars: ✭ 42 (+20%)
Mutual labels:  wikipedia
HaxeCI
An example of using CI for Haxe projects.
Stars: ✭ 45 (+28.57%)
Mutual labels:  travis-ci
on-this-day
App that serves and displays events, births and deaths that occurred during the queried day of history, scraped from Wikipedia
Stars: ✭ 12 (-65.71%)
Mutual labels:  wikipedia
dlang-bot
dlang-bot for automated bugzilla, github, and trello references
Stars: ✭ 20 (-42.86%)
Mutual labels:  travis-ci
rabbitChat
A Chat-Server/Chat-System based on AMQP protocol(RabbitMQ) + AMQP Python Client(PIKA) + Websockets(SockJS) + Async Python Server(Tornado)
Stars: ✭ 53 (+51.43%)
Mutual labels:  travis-ci
space-wiki
太空维基 A Chrome Plug-in for Wikipedia
Stars: ✭ 19 (-45.71%)
Mutual labels:  wikipedia
tech-seo-crawler
Build a small, 3 domain internet using Github pages and Wikipedia and construct a crawler to crawl, render, and index.
Stars: ✭ 57 (+62.86%)
Mutual labels:  wikipedia
pygitrepo-project
A simplified, minimal but powerful Python Git Project development workflow CLI tools.
Stars: ✭ 32 (-8.57%)
Mutual labels:  travis-ci
helpmebot
Helpmebot
Stars: ✭ 16 (-54.29%)
Mutual labels:  wikipedia
arduino-ci-script
Bash script for continuous integration of Arduino projects
Stars: ✭ 25 (-28.57%)
Mutual labels:  travis-ci
wistalk
Wistalk : Analyze Wikipedia User's Activity
Stars: ✭ 19 (-45.71%)
Mutual labels:  wikipedia
scikit-ci
Simpler and centralized CI configuration for Python extensions.
Stars: ✭ 15 (-57.14%)
Mutual labels:  travis-ci
wikifox
A clean and simplified WikiPedia powered by wikifox.js
Stars: ✭ 50 (+42.86%)
Mutual labels:  wikipedia
wikibot
Some MediaWiki bot examples including wikipedia, wikidata using MediaWiki module of CeJS library. 採用 CeJS MediaWiki 自動化作業用程式庫來製作 MediaWiki (維基百科/維基數據) 機器人的範例。
Stars: ✭ 26 (-25.71%)
Mutual labels:  wikipedia
Spell4Wiki
Spell4Wiki is a mobile application to record and upload audio for Wiktionary words to Wikimedia commons. Also act as a Wiki-Dictionary.
Stars: ✭ 17 (-51.43%)
Mutual labels:  wikipedia
naacl2018-fever
Fact Extraction and VERification baseline published in NAACL2018
Stars: ✭ 109 (+211.43%)
Mutual labels:  wikipedia
travis-ci-tutorial-java
Just to learn how to use travis-ci in a java project!
Stars: ✭ 38 (+8.57%)
Mutual labels:  travis-ci
wikibot
A 🤖 which provides features from Wikipedia like summary, title searches, location API etc.
Stars: ✭ 25 (-28.57%)
Mutual labels:  wikipedia

Build Status codecov Go Report Card

TelegramBot-Go

This is a Telegram bot which receives information from user which he want found in Wikipedia and return information which he found in Wikipedia.

example work of bot

Getting Started

Available environment variable:

TOKEN

DB_SWITCH

LANGUAGE

CREATE_TABLE

HOST

PORT

USER

PASSWORD

DBNAME

SSLMODE

Telegram

If you want to use /number_of_users command your need to connect bot to database and add this command to your bot using BotFather: number_of_users - number of users who used bot

/number_of_users command sending message to user which contain number of users who used bot

Docker Hub

https://hub.docker.com/r/trigun117/wikipedia-telegram-bot/

Docker

Language

You can specify language

-e LANGUAGE=search_language
Examples: 
Russian: docker run -e LANGUAGE=ru -e TOKEN=set_your_bot_token -d trigun117/wikipedia-telegram-bot
France: docker run -e LANGUAGE=fr -e TOKEN=set_your_bot_token -d trigun117/wikipedia-telegram-bot

Default is English

Image

If you dont want to use databse run:

docker run -e TOKEN=set_your_bot_token -d trigun117/wikipedia-telegram-bot

If you want to use database run:

docker run \
-e DB_SWITCH=on \
-e TOKEN=set_your_bot_token \
-e HOST=set_your_database_host \
-e PORT=set_your_database_port \
-e USER=set_your_database_user \
-e PASSWORD=set_your_database_password \
-e DBNAME=set_your_database_name \
-e SSLMODE=set_your_database_sslmode(disable or enable, default disable) \
-d trigun117/wikipedia-telegram-bot

if you need to create table add

-e CREATE_TABLE=yes

Docker-Compose

Set environment variables in docker-compose.yml

services:

  db:
    image: postgres
    environment:
      POSTGRES_PASSWORD: test

  bot:
    image: trigun117/wikipedia-telegram-bot
    environment:
      CREATE_TABLE: "yes"
      DB_SWITCH: "on"
      TOKEN: set_your_bot_token
      HOST: db
      PORT: 5432
      USER: postgres
      PASSWORD: test
      DBNAME: postgres
      SSLMODE: disable

Than move to /docker-compose folder and run:

docker-compose up --build

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].