Skip to content
/ td Public
forked from tdlib/td

Cross-platform library for building Telegram clients

License

Notifications You must be signed in to change notification settings

wangye663/td

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext

def hello(update: Update, context: CallbackContext) -> None: update.message.reply_text(f'Hello {update.effective_user.first_name}')

def main() -> None: # Replace 'TOKEN' with your Bot's API token. updater = Updater("TOKEN")

updater.dispatcher.add_handler(CommandHandler('hello', hello))

updater.start_polling()

updater.idle()

if name == 'main': main()

About

Cross-platform library for building Telegram clients

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.9%
  • C 1.3%
  • CMake 0.9%
  • PHP 0.5%
  • JavaScript 0.4%
  • Java 0.4%
  • Other 0.6%