Пример #1
0
def ChannelField(raw):
    # Non-integers must be channel names
    if isinstance(raw, basestring) and raw:
        if raw[0] == '#':
            return raw[1:]
        elif not raw[0].isdigit():
            return raw
    return snowflake(raw)
Пример #2
0
def UserField(raw):
    return snowflake(raw)