ptbtest.ptbgenerator module¶
This module contains a base class for class generators.
-
class
ptbtest.ptbgenerator.
PtbGenerator
¶ Base class for all generators.
-
static
gen_id
(group=False)¶ Returns an id in the range telegram id’s are valid. defaults to a positive int for a private chat.
Parameters: group (optional[bool]) – If True will return a negative id for a group chat. Returns: positive or negitve depending on group argument, Return type: int
-
static