8000 GitHub - Zenaker/Nestar: Python Framework for Telegram's Bot API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Zenaker/Nestar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Nestar

python telegram

Python Framework for Telegram's Bot API

Dependence

Install it this way:

pip install requests

Usage

Bot Sample

import nestar

def handle(bot, update):
	print(update)

bot = nestar.Nestar("YOUR:TOKEN")
bot.loop(handle)

Plugin Sample

class NestarPlugin:
	def handle(self, bot, update):
		bot.sendMessage(chat_id=update["message"]["from"]["id"], text="Hi! Welcome to Nestar, {}".format(update["message"]["from"]["first_name"]))

You won't need an handler if there is at least one plugin in the plugins folder.

About

Python Framework for Telegram's Bot API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0