A Telegram bot written in python.

Overview

telegram_bot

This bot is currently a beta project.

Features

A telegram bot which can:

  • Send current COVID-19 cases/stats of Germany
  • Send current worth of major crypto currencies
  • Send a random meme

Important information

If you are using Windows, type 'python' instead of 'python3'. Otherwise it propably won't work.

Setup

First, you need to git clone this repository. On Windows you might have to install git but you can also just download this repo from the website.

git clone https://github.com/huhncares-cmd/telegram_bot

After that, you need to setup your virtual environment.

python3 -m venv venv

On Linux you might have to install python3-venv first. SImply type in this command:

sudo apt install python3-venv

On Windows you can jump into the environment like that on cmd:

venv\Scripts\activate.bat

And on Powershell:

venv\Scripts\Activate.ps1

On Linux it's a bit different because there are many shells out there. You can see what's right for you on the official website of Python (https://docs.python.org/3/library/venv.html), but for most users this command will work:

source venv/bin/activate

Install requirements

When you are in your virtual environment, you can simply install all dependencies using this command:

pip3 install -r requirements.txt

Generate API-Token

You need an API-Token to access the Telegram-API. You can get this API-Token by sending a message to @BotFather (https://t.me/BotFather). Just write /start and follow the instructions of the bot.

Setting up environment variables

After getting the API-Token you need to setup your environment variables. Create a .env file in your base directory and type in the following stuff.

TELEGRAM_API_KEY = 
   

   

Make Sure to exclude this file with .gitignore if you want to use Git later.

Run

You can run the bot by executing main.py.

python3 main.py

Finish

That's basicly it. You've just set up your own Telegram bot. Feedback on Twitter (https://twitter.com/huhncares) or GitHub (https://github.com/huhncares-cmd) is appreciated. Thanks for using huhncares-cmd/telegram_bot!

Owner
HuhnCares
I'm a developer.
HuhnCares
Mark Sullivan 66 Dec 13, 2022
Python Proof of Concept for retrieving Now Playing on YouTube Music with TabFS

Youtube Music TabFS Python Proof of Concept for retrieving Now Playing on YouTube Music with TabFS. music_information = get_now_playing() pprint(music

Junho Yeo 41 Nov 06, 2022
An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In @SafoTheBot Group! โค๏ธ

Telegram Video Player Bot (Beta) An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. Special Features Supports Live Streaming From

SAF ONE 206 Jan 03, 2023
A Discord bot for osu!

This is the mostly-complete repo for the owo Discord osu! bot which you can invite here. As you look through this repo, please keep in mind that all o

Stevy 43 Dec 28, 2022
A Twitter bot written in Python using Tweepy and hosted on a server.

A Twitter bot written in Python using Tweepy. It can like and/or retweet tweets that contain single or multiple keywords and hashtags.

anniedotexe 11 Dec 15, 2022
The aim is to contain multiple models for materials discovery under a common interface

Aviary The aviary contains: - roost, - wren, cgcnn. The aim is to contain multiple models for materials discovery under a common interface Environment

Rhys Goodall 20 Jan 06, 2023
A heraldry-related bot, designed for the Heraldry Community.

Heraldtron A heraldry-related bot, designed for the Heraldry Community. Requirements Python 3.9+ discord.py aiohttp (comes installed with discord.py)

1 Mar 31, 2022
Shows VRML team stats of all players in your pubs

VRML Team Stat Searcher Displays Team Name, Team Rank (Worldwide), and tier of all the players in your pubs. GUI WIP: Username search works & pub name

Hamish 2 Dec 22, 2022
ARKHAM X GOD MULTISPAM BOT

ARKHAM-X-GOD-MULTISPAM-BOT ๐——๐—˜๐—ฃ๐—Ÿ๐—ข๐—ฌ ๐—จ๐—ฃ๐—ง๐—ข 30 ๐—•๐—ข๐—ง๐—ฆ ๐—œ๐—ก ๐—” ๐—ฆ๐—œ๐—ก๐—š๐—Ÿ?

ArkhamXGod 2 Jan 08, 2022
A tool for transferring server variable values from one intersect gamedata.db to another

Server Variable Transfer Tool Purpose This tool exists for use with the Intersect Engine (Ascension Game Dev GitHub). Its purpose is to UPDATE one sql

AVild 2 Oct 27, 2021
Discord bot for user notes.

Noter A discord bot for handling notes for users. Want to keep track of things about your discord users? Then this bot is for you! Links DB Browser fo

Ori 2 Jun 05, 2022
PepeSniper is an open-source Discord Nitro auto claimer/redeemer made in python.

PepeSniper is an open-source Discord Nitro auto claimer made in python. It sure as hell is not the fastest sniper out there but it gets the job done in a timely and stable manner. It also supports ho

Unknown User 1 Dec 22, 2021
A simple bot that looks for names and cpfs in the vaccination list made available by the government Fortaleza - CE

A simple bot that looks for names and cpfs in the vaccination list made available by the government Fortaleza - CE

Breno Aquino 1 Dec 21, 2021
An API wrapper for convertio.co written in Python.

An API wrapper for convertio.co written in Python.

Moonrise 9 Sep 27, 2022
StudyLion is a Discord bot that tracks members' study and work time while offering members to view their statistics and use productivity tools such as: To-do lists, Pomodoro timers, reminders, and much more.

StudyLion - Discord Productivity Bot StudyLion is a Discord bot that tracks members' study and work time while offering members the ability to view th

45 Dec 26, 2022
Easy to use API Wrapper for somerandomapi.ml.

Overview somerandomapi is an API Wrapper for some-random-api.ml Examples Asynchronous from somerandomapi import Animal

Myxi 1 Dec 31, 2021
Multi Account Generator Minecraft/NordVPN/Hulu/Origin And ...

Multi Account Generator Minecraft/NordVPN/Hulu/Origin And ...

76 Jan 01, 2023
Python client for the Datadog API

datadog-api-client-python This repository contains a Python API client for the Datadog API. The code is generated using openapi-generator and apigento

Datadog, Inc. 58 Dec 16, 2022
A fun hangman style game to guess random movie names with a short summary about the movie.

hang-movie-man Hangman but for movies ๐Ÿ˜‰ This is a fun hangman style game to guess random movie names from the local database and show some summary ab

Ankit Josh 10 Sep 07, 2022
An advanced api client for python botters.

[ALPHA] pybotters An advanced api client for python botters. ๐Ÿ“Œ Description pybottersใฏไปฎๆƒณ้€š่ฒจbotterๅ‘ใ‘ใฎPythonใƒฉใ‚คใƒ–ใƒฉใƒชใงใ™ใ€‚่ค‡ๆ•ฐๅ–ๅผ•ๆ‰€ใซๅฏพๅฟœใ—ใŸ้žๅŒๆœŸAPIใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใงใ‚ใ‚Šใ€bot้–‹็™บใซใ‚ˆใ‚Š็ด ๆ™ดใ‚‰

261 Dec 31, 2022