ptbtest.ptbgenerator module¶
This module contains a base class for class generators.
- class ptbtest.ptbgenerator.PtbGenerator¶
Bases:
objectBase 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 negative depending on group argument,
- Return type
int