Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

tgbot

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tgbot - npm Package Compare versions

Comparing version
1.0.dev31
to
1.0.dev32
+1
-1
PKG-INFO
Metadata-Version: 1.1
Name: tgbot
Version: 1.0.dev31
Version: 1.0.dev32
Summary: Framework to build a Telegram Bot based on a UWSGI Server

@@ -5,0 +5,0 @@ Home-page: https://github.com/T-Eberle/tgbot/

@@ -8,5 +8,5 @@ [metadata]

[egg_info]
tag_build = .dev31
tag_build = .dev32
tag_date = 0
tag_svn_revision = 0
tag_date = 0
Metadata-Version: 1.1
Name: tgbot
Version: 1.0.dev31
Version: 1.0.dev32
Summary: Framework to build a Telegram Bot based on a UWSGI Server

@@ -5,0 +5,0 @@ Home-page: https://github.com/T-Eberle/tgbot/

@@ -103,6 +103,13 @@ __author__ = 'Thomas Eberle'

def sendvoice(chat_id, file):
def sendvoiceFromFile(chat_id, file):
return sendrequestwithfile("sendVoice","voice",open(file,"rb"),filename=None,chat_id=chat_id)
def sendvoiceFromId(chat_id,file_id,**kwargs):
values={"voice":file_id,"chat_id":chat_id}
for key, value in kwargs.items():
values[key] = value
return sendrequest("sendVoice", values)
def sendaudio(chat_id,filename,file):

@@ -109,0 +116,0 @@ return sendrequestwithfile("sendAudio","audio",open(file,"rb"),filename=filename,chat_id=chat_id)