mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
paparapaaaa
This commit is contained in:
parent
8eb11f2a95
commit
5de053b514
2 changed files with 4 additions and 4 deletions
2
bot.py
2
bot.py
|
@ -35,4 +35,4 @@ while(True):
|
|||
telegram.sendMessage(chr(9888) + " Non hai specificato un gioco! [Visualizza tutte le offerte](https://isthereanydeal.com/#/search:.;/scroll:%23gamelist).", sby)
|
||||
elif(cmd[0].startswith('/rage')):
|
||||
print('/rage')
|
||||
telegram.sendAudio("BQADAgAD3wEAAh8GgAE6ZnLP5_gFMwI", sby)
|
||||
telegram.sendDocument("BQADAgAD3wEAAh8GgAE6ZnLP5_gFMwI", sby)
|
|
@ -44,14 +44,14 @@ def forwardMessage(msg, sentby, to):
|
|||
#Manda la richiesta ai server di Telegram.
|
||||
requests.get("https://api.telegram.org/bot" + telegramtoken + "/forwardMessage", params=parametri)
|
||||
|
||||
def sendAudio(audio, to):
|
||||
def sendDocument(doc, to):
|
||||
"""Manda un audio a una chat."""
|
||||
parametri = {
|
||||
'chat_id': to,
|
||||
'audio': audio,
|
||||
'document': doc,
|
||||
}
|
||||
#Manda la richiesta ai server di Telegram.
|
||||
requests.get("https://api.telegram.org/bot" + telegramtoken + "/sendAudio", params=parametri)
|
||||
requests.get("https://api.telegram.org/bot" + telegramtoken + "/sendDocument", params=parametri)
|
||||
|
||||
def sendLocation(lat, long, to):
|
||||
"""Manda una posizione sulla mappa."""
|
||||
|
|
Loading…
Reference in a new issue