You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign 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 - pypi Package Compare versions

Comparing version
1.0.dev24
to
1.0.dev25
+1
-1
PKG-INFO
Metadata-Version: 1.1
Name: tgbot
Version: 1.0.dev24
Version: 1.0.dev25
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 = .dev24
tag_build = .dev25
tag_date = 0
tag_svn_revision = 0
Metadata-Version: 1.1
Name: tgbot
Version: 1.0.dev24
Version: 1.0.dev25
Summary: Framework to build a Telegram Bot based on a UWSGI Server

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

@@ -35,8 +35,6 @@ # -*- coding: utf-8 -*-

commandparser.parsecommand(message, botcommands)
elif conversation.getconversationmethodanddelete(user.getchatid()):
elif conversation.getconversation(user.getchatid()):
commandparser.parseconversation(message, conversationmethods, conversation)
elif TGRedis.getconvcommand(message):
commandparser.parsecommand(message, botcommands)
elif conversation and conversation.getconversationmethod(user.getchatid()):
commandparser.parsecommand(message, botcommands)
else:

@@ -47,3 +45,2 @@ textparser.parsetext(message)

def parseinline(inline,args):
# parsereplycommand(message)
if inline.query is not None:

@@ -50,0 +47,0 @@ inlineparser.parseinline(inline,args)

@@ -11,3 +11,3 @@ # -*- coding: utf-8 -*-

@abstractmethod
def getconversationmethod(user_id):
def getconversation(user_id):
pass

@@ -17,3 +17,3 @@

@abstractmethod
def getconversationmethodanddelete(user_id):
def deleteconversation(user_id):
pass

@@ -23,3 +23,3 @@

@abstractmethod
def deleteconversation(user_id):
def addtoconversation(user_id, key, value):
pass

@@ -29,3 +29,3 @@

@abstractmethod
def addtoconversation(user_id,question,answer):
def getconversationvalue(user_id,command):
pass

@@ -40,3 +40,3 @@

@abstractmethod
def setconversation(user_id,command):
def setconversation(user_id,command,value=None):
pass