Giter Site home page Giter Site logo

remote-pc-telegram's Introduction

Remote-PC-Telegram

Control your PC with Telegram Bot. You can browse any url, play youtube video, shutdown, reboot, and check your PC status.

Getting Started

Prerequisites

Required:

  • Python 3.5+ (for Windows user you must add Python to the PATH)
  • Telegram Bot Token
  • Internet Connection

Installing

how to Install

  • Clone this repository.
  • Set up a new Telegram bot talking to the BotFather
  • Copy the token that given on BotFather. Example: 777353611:AAFWY7LHCCisrsWO3UzZLw_2BBXq68M8jD8 (copy all)
  • Launch the setup.py with command: python setup.py or for windows user you can click 2x on this file.
  • Complete all required fields and click Submit your Input
  • Click Install requirements files and wait until they done.
  • Run your Bot by clicking Run your Bot!
  • You can start to chat your Bot by typing /start and view the available commands.

note:

  • Don't close the running window if you want to use Bot
  • If you already setup the bot before, simply open main file by python main.py

remote-pc-telegram's People

Contributors

damnkrat avatar lazuardyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

remote-pc-telegram's Issues

Sentence. Go to sleep and take a screenshot of the screen.

Please add the ability to put your computer to sleep and also get a screenshot of the screen. It would also be great to add an instruction to autorun the script. I would also like to be able to minimize the bot window so that it does not interfere.. Windows

command /restart

Hi, you need to add below line 165,

elif update ['message'] ['text']. startswith ('/restart'):
restart (update)

The /restart command does not work, you may have forgotten.

Can you add this feature please ?

Hi,

Thanks for the great bot, is it possible to play youtube songs in queue. For example, if I send the command /youtube then another command /youtube it will not suspend playing the first link and play the second link, however, it will keep playing link1 and after it finishes it will play link2.

I hope I expressed the idea well.

Best regards,

problem when server runs out of internet

Error presented if the server runs out of internet, even after the program is restarted, it needs to close the main.py application and open again to work again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python37\lib\tkinter_init_.py", line 1705, in call
return self.func(*args)
File "C:\Python37\lib\tkinter_init_.py", line 749, in callit
func(*args)
File "C:\Users\Administrador\Desktop\Remote-PC-Telegram-master\main.py", line 117, in main
req = requests.get(url).json()
File "C:\Python37\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Python37\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python37\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python37\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\Python37\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionAbortedError(10053, 'Uma conexão estabelecida foi anulada pelo software no computador host', None, 10053, None))

How to use command?

I have install and run successfully but where to type the command to get the list of all the available command in telegram?

Error

Traceback (most recent call last):
File "C:\Users\Administrador\AppData\Local\Programs\Python\Python35\lib\tkinter_init_.py", line 1549, in call
return self.func(*args)
File "C:\Users\Administrador\AppData\Local\Programs\Python\Python35\lib\tkinter_init_.py", line 596, in callit
func(*args)
File "main.py", line 125, in main
if update['message']['from']['username'] == owner:
KeyError: 'username'

Any idea what it might be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.