1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Updated sendMediaGroup method

This commit is contained in:
heyyyoyy
2018-01-15 16:08:50 +03:00
parent 6d180e30f0
commit 2637e29dbe
3 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import random
import string
import threading
import traceback
import re
@@ -254,3 +255,7 @@ def per_thread(key, construct_value):
value = construct_value()
setattr(thread_local, key, value)
return value
def generate_random_token():
return ''.join(random.sample(string.ascii_letters, 16))